6.0.0-RC7
6/22/26

[#7251] Add an option to hide the script icon in ingo
Summary Add an option to hide the script icon in ingo
Queue Ingo
Queue Version 1.2
Type Enhancement
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester yann (at) pleiades (dot) fr (dot) eu (dot) org
Created 8/28/08 (6507 days ago)
Due
Updated 9/1/08 (6503 days ago)
Assigned
Resolved 8/31/08 (6504 days ago)
Milestone
Patch No

History
3711 Jan Schneider Comment #9 Reply to this comment
Yes, of course. Fixed in CVS.
5110 yann (at) pleiades (dot) fr (dot) eu (dot) org Comment #7 Reply to this comment
I think there is an error in the applied patch.

I thought script icon would not be displayed if the auto_update is 
locked and set.

Right now is not displayed is only auto_update is locked and unset



Shouldn't the patch rather be:



@@ -395,7 +395,9 @@ class Ingo {

          if (in_array(INGO_STORAGE_ACTION_SPAM, 
$_SESSION['ingo']['script_categories'])) {

              $menu->add(Horde::applicationUrl('spam.php'), 
_("S_pam"), 'spam.png');

          }

-        if ($_SESSION['ingo']['script_generate']) {

+        if ($_SESSION['ingo']['script_generate'] &&

+            !($GLOBALS['prefs']->isLocked('auto_update') &&

+             $GLOBALS['prefs']->getValue('auto_update'))) {

              $menu->add(Horde::applicationUrl('script.php'), 
_("_Script"), 'script.png');

          }

          if (!empty($GLOBALS['ingo_shares']) && 
empty($GLOBALS['conf']['share']['no_sharing'])) {


525 Jan Schneider Comment #5
Assigned to Jan Schneider
State ⇒ Resolved
Reply to this comment
Easy enough. Committed for Ingo 1.2.1.
599 yann (at) pleiades (dot) fr (dot) eu (dot) org Comment #3 Reply to this comment
We already locked and set this option, so that would indeed make sense 
for our setup.
418 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
If you want to remove that icon, you have to make sure that the user 
preference to enable scripts automatically is set and locked. We could 
hide the button under that condition. Does that make sense?
434 yann (at) pleiades (dot) fr (dot) eu (dot) org Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Add an option to hide the script icon in ingo
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ No
State ⇒ New
Reply to this comment
In order to not confuse our users, we would like to hide the script 
icon displayed in the top menu bar in ingo.



Would it be possible to add an option for this ?

Saved Queries