Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5346

Script tool: the query is saved with an empty value

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • None
    • None
    • None

      • Open Script tool
      • Write the following script
        var r = [];
        for (var i in selection)
        {
        	var formation = selection[i];
        	if (formation.getDomain() == "ALL")
        	{
        		formation.setMetadata("statut_ok", true);
        		r.push(formation);
        	}
        	else
        	{
        		formation.setMetadata("statut_ok", false);
        	}
        }
        session.save();
        
      • Save the query

      The query is saved with an empty value

      "{"toolRole":"uitool-script","toolParams":{"id":"search-model.default","values":{"script":""}}}
      

            stephane.albuisson Albuisson Stéphane (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: