+2015-01-23 Ryosuke Niwa <rniwa@webkit.org>
+
+ Unreviewed typo fix. The prefix in triggerable_configurations is "trigconfig", not "trigrepo".
+
+ * public/admin/tests.php:
+
2015-01-10 Ryosuke Niwa <rniwa@webkit.org>
Unreviewed build fix. Removed the stale code.
notice("Failed to associate triggerable $triggerable_id with test $test_id on platform $platform_id.");
}
} else {
- $db->query_and_get_affected_rows('DELETE FROM triggerable_configurations WHERE trigrepo_test = $1 AND trigrepo_platform = $2',
+ $db->query_and_get_affected_rows('DELETE FROM triggerable_configurations WHERE trigconfig_test = $1 AND trigconfig_platform = $2',
array($test_id, $platform_id));
}
} else if ($action == 'add') {
$test_url = htmlspecialchars($test['test_url']);
- $triggerable_platforms = $db->query_and_fetch_all('SELECT * FROM platforms LEFT OUTER JOIN triggerable_configurations
- ON trigconfig_platform = platform_id AND trigconfig_test = $1 ORDER BY platform_name', array($test_id));
+ $triggerable_platforms = $db->query_and_fetch_all('SELECT * FROM platforms
+ LEFT OUTER JOIN triggerable_configurations ON trigconfig_platform = platform_id AND trigconfig_test = $1 ORDER BY platform_name', array($test_id));
$triggerables = '';
foreach ($triggerable_platforms as $platform_row) {
if (!$test_name_resolver->test_exists_on_platform($test_id, $platform_row['platform_id']))
<select name="triggerable" onchange="this.form.submit();">
<option value="">None</option>
END;
- $selected_triggerable = array_get($platform_row, 'trigrepo_triggerable');
+ $selected_triggerable = array_get($platform_row, 'trigconfig_triggerable');
foreach ($build_triggerable_table as $triggerable_row) {
$triggerable_id = $triggerable_row['triggerable_id'];
$selected = $triggerable_id == $selected_triggerable ? ' selected' : '';