[ingo] Re: adding a default "stop" to Sieve rules

Jan Schneider jan at horde.org
Fri Apr 8 10:51:12 PDT 2005


Zitat von Liam Hoekenga <liamr at umich.edu>:

> I haven't messed around with this in a few weeks.  Still haven't got
> anywhere.  Any suggestions?

Did you look how other fields are populated? The rule name for example 
has a "New Rule" if creating a new rule.

> On Wed, 30 Mar 2005, liam hoekenga wrote:
>
>> Our helpdesk has requested that when creating new rules in Ingo, that "Stop
>> checking if this rule matches?" be checked by default.
>>
>> It looks like this is set in templates/rule/footer.php.  I tried this..
>>
>> --- footer.inc- 2005-03-30 11:23:36.000000000 -0500
>> +++ footer.inc  2005-03-30 11:24:07.000000000 -0500
>> @@ -59,5 +59,5 @@
>>   <tr class="item1">
>>     <td align="left" style="padding:5px">
>> -      <input type="checkbox" name="stop" value="1"<?php echo 
>> ($rule['stop']) ?
>> 'checked="checked"' : '' ?>> <?php echo _("Stop checking if this rule
>> matches?") ?>
>> +      <input type="checkbox" name="stop" value="1"<?php echo 
>> (!$rule['stop']) ?
>> '' : 'checked="checked"' ?>> <?php echo _("Stop checking if this 
>> rule matches?")
>> ?>
>>     </td>
>>     <td width="40px" align="right">
>>
>> I'm guessing that this doesn't work because with a fresh rule $rule 
>> is probably
>> unpopulated.
>>
>> So.. how do I set this default w/o breaking people's ability to 
>> uncheck this if
>> they wish?

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the ingo mailing list