[imp] Sharing folder - Insert flag does not show up

Graeme Wood Graeme.Wood at ed.ac.uk
Sun Apr 23 10:48:39 PDT 2006


On Sun, 23 Apr 2006, Jacques Beaudoin wrote:

> Hi,
>
> Small bug sharing folder.
>
> After setting the "I"(insert) flag for a folder
>
> IMP does not show that the "I"(insert) flag is set.
>
> NB: I use imp with dbmail and in dbmail
>     the insert "I"(insert)flag is set.
>
> All other flag setting work OK

This patch will fix it:

*** templates/acl/acl.inc	Sat Mar 18 09:28:01 2006
--- templates/acl/acl.inc.preucs	Sat Mar 18 09:16:21 2006
***************
*** 4,10 ****
  var users = new Array(<?php echo $js_user ?>);

  <?php foreach ($js_right as $key => $val): ?>
! var <?php echo "acl_".$key ?> = new Array(<?php echo $val ?>);
  <?php endforeach; ?>
  <?php endif; ?>

--- 4,10 ----
  var users = new Array(<?php echo $js_user ?>);

  <?php foreach ($js_right as $key => $val): ?>
! var <?php echo $key ?> = new Array(<?php echo $val ?>);
  <?php endforeach; ?>
  <?php endif; ?>

***************
*** 18,24 ****
          document.acl.share_user.disabled = true;
  <?php if (!empty($js_right)): ?>
  <?php foreach ($js_right as $key => $val): ?>
!         if (<?php echo "acl_".$key ?>[num] > 0) {
              document.acl.elements['acl[<?php echo $key ?>]'].checked = true;
          } else {
              document.acl.elements['acl[<?php echo $key ?>]'].checked = false;
--- 18,24 ----
          document.acl.share_user.disabled = true;
  <?php if (!empty($js_right)): ?>
  <?php foreach ($js_right as $key => $val): ?>
!         if (<?php echo $key ?>[num] > 0) {
              document.acl.elements['acl[<?php echo $key ?>]'].checked = true;
          } else {
              document.acl.elements['acl[<?php echo $key ?>]'].checked = false;

-- 
=============================================================================
Graeme Wood                                 Email: Graeme.Wood at ed.ac.uk
Unix Systems Support                        Phone: +44 131 650 5003
The University of Edinburgh                 Fax:   +44 131 650 6552
=============================================================================


More information about the imp mailing list