* All apps favorites: fix issue add favorites popup dialog no longer works after add/remove columns from list

This commit is contained in:
Hadi Nategh 2019-11-13 11:50:30 +01:00
parent 302800b414
commit edd8be4355

View File

@ -598,7 +598,9 @@ var AppJS = (function(){ "use strict"; return Class.extend(
*/ */
add_favorite: function(state) add_favorite: function(state)
{ {
if(typeof this.favorite_popup == "undefined") if(typeof this.favorite_popup == "undefined" || // Create popup if it's not defined yet
(this.favorite_popup && typeof this.favorite_popup.group !="undefiend"
&& !this.favorite_popup.group.isAttached())) // recreate the favorite popup if the group selectbox is not attached (eg. after et2 submit)
{ {
this._create_favorite_popup(); this._create_favorite_popup();
} }