IDEMPIERE-3801 System user can't use saved queries

This commit is contained in:
Nicolas Micoud 2018-10-12 11:07:23 +02:00
parent 0640e29b13
commit 428e00ae86
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
/**
*
*/
private static final long serialVersionUID = -4461202150492732658L;
private static final long serialVersionUID = -2476692172080549315L;
// values and label for history combo
private static final String HISTORY_DAY_ALL = "All";
@ -1740,7 +1740,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
uq = new MUserQuery (Env.getCtx(), 0, null);
uq.setName (name);
uq.setAD_Tab_ID(m_AD_Tab_ID); //red1 UserQuery [ 1798539 ] taking in new field from Compiere
uq.setAD_User_ID(Env.getAD_User_ID(Env.getCtx())); //red1 - [ 1798539 ] missing in Compiere delayed source :-)
uq.set_ValueOfColumn("AD_User_ID", Env.getAD_User_ID(Env.getCtx())); // required set_Value for System=0 user
}
} else if (code.length() <= 0){ // Delete the query