mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Test for tag instead of #4495
This commit is contained in:
@@ -1779,7 +1779,7 @@ function formatTag(tag) {
|
||||
}
|
||||
|
||||
function addTag(tag) {
|
||||
if (tag.Name.trim() !== '' && !isDup(tag.Name)) {
|
||||
if (tag && (tag.Name.trim() !== '') && !isDup(tag.Name)) {
|
||||
$j.getJSON(thisUrl + '?request=event&action=addtag&tid=' + tag.Id + '&id=' + eventData.Id)
|
||||
.done(function(data) {
|
||||
formatTag(tag);
|
||||
|
||||
Reference in New Issue
Block a user