зеркало из https://github.com/mozilla/gecko-dev.git
Order quicksearch results by name.
Don't update status unless it is different
This commit is contained in:
Родитель
3211a9ab37
Коммит
954f8b9d86
|
@ -365,7 +365,7 @@ if the status is a closed status.
|
|||
sub set_status {
|
||||
my $self = shift;
|
||||
my ($status_id) = @_;
|
||||
|
||||
return if $self->status_id == $status_id;
|
||||
my $oldstatus = $self->status;
|
||||
my $newstatus = $self->lookup_status($status_id);
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<a id="st1_[% index %]">
|
||||
<img id="im[% loop.count %]_[% index %]" src="testopia/img/[% status.name FILTER none %]_gray.gif" width="23" height="23" alt="[% status.name FILTER none %] (disabled)" title="[% status.name FILTER none %](disabled)" border="0" /></a>
|
||||
[% ELSE %]
|
||||
<a id="st1_[% index %]" href="javascript:chNote([% index %], [% caserun.id FILTER none %], document.getElementById('notes[% index %]').value); chStat([% index %], [% status.id FILTER none %], [% caserun.id FILTER none %]);">
|
||||
<a id="st1_[% index %]" href="javascript:chNote([% index %], [% caserun.id FILTER none %], document.getElementById('notes[% index %]').value); chStat([% index %], [% status.id FILTER none %], [% caserun.id FILTER none %], [% caserun.status_id FILTER none %]);">
|
||||
<img id="im1_[% index %]" src="testopia/img/[% status.name FILTER none %].gif" width="23" height="23" alt="[% status.name FILTER none %]" title="[% status.name FILTER none %]" border="0" /></a>
|
||||
[% END %]
|
||||
</div>
|
||||
|
|
|
@ -116,7 +116,9 @@ function chEnv(idx, eid, sid, cid, oldid){
|
|||
});
|
||||
}
|
||||
//chStat updates the status
|
||||
function chStat(idx, sid, cid){
|
||||
function chStat(idx, sid, cid, osid){
|
||||
if (osid == sid)
|
||||
return;
|
||||
displayMsg('pp'+idx, 3, MSG_WAIT.blink());
|
||||
disableAllButtons(true);
|
||||
dojo.io.bind({
|
||||
|
|
|
@ -193,6 +193,7 @@ else{
|
|||
"SELECT name, environment_id
|
||||
FROM test_environments
|
||||
WHERE name like ?
|
||||
ORDER BY name
|
||||
LIMIT 20",
|
||||
undef, $search);
|
||||
print objToJson($ref);
|
||||
|
@ -213,6 +214,7 @@ else{
|
|||
JOIN test_case_tags on test_case_tags.tag_id = test_tags.tag_id
|
||||
JOIN test_case_runs on test_case_runs.case_id = test_case_tags.case_id
|
||||
WHERE tag_name like ? AND test_case_runs.run_id = ?
|
||||
ORDER BY tag_name
|
||||
LIMIT 20",
|
||||
undef, ($search, $run_id));
|
||||
}
|
||||
|
@ -221,6 +223,7 @@ else{
|
|||
"SELECT tag_name, tag_id
|
||||
FROM test_tags
|
||||
WHERE tag_name like ?
|
||||
ORDER BY tag_name
|
||||
LIMIT 20",
|
||||
undef, $search);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче