Fix a notice associated with new test link in SearchSource, a=chris
Fix a notice associated with new test link in SearchSource, a=chris
diff --git a/src/views/elements/SearchsourcesElement.php b/src/views/elements/SearchsourcesElement.php
index 939f63e88..95915df52 100644
--- a/src/views/elements/SearchsourcesElement.php
+++ b/src/views/elements/SearchsourcesElement.php
@@ -749,10 +749,13 @@ class SearchsourcesElement extends Element
e("id='focus-button'");
}?>
type="submit"><?=tl('searchsources_element_save')
- ?></button> <a class='source-anchor-button' href="<?=
+ ?></button><?php
+ if ($data['SOURCE_FORM_TYPE'] == 'editsource') {?>
+ <a class='source-anchor-button' href="<?=
$base_url . "&arg=testsource&ts=".
$data['ts'] . $paging1 . $paging2?>"><?=
- tl('searchsources_element_test')?></a></td></tr>
+ tl('searchsources_element_test')?></a><?php
+ }?></td></tr>
</table>
</form><?php
}