Fix error on tag change without a selected item (from 1e59c5ab7
)
This commit is contained in:
parent
6dbe1d1e19
commit
fec159f969
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,7 @@
|
|||
|
||||
for (var i=0; i<ids.length; i++) {
|
||||
[itemID, tagID] = ids[i].split('-');
|
||||
if (itemID != this.item.id) {
|
||||
if (!this.item || itemID != this.item.id) {
|
||||
continue;
|
||||
}
|
||||
if (event == 'add') {
|
||||
|
@ -868,6 +868,10 @@
|
|||
<parameter name="count"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (!this.item) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(typeof count == 'undefined') {
|
||||
var tags = this.item.getTags();
|
||||
if(tags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue