[Tickets #4307] NEW: Permissions Window - Save and Close

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Aug 17 09:12:07 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4307
-----------------------------------------------------------------------
 Ticket             | 4307
 Created By         | webmgr at muskingum.edu
 Summary            | Permissions Window - Save and Close
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 Type               | Enhancement
 State              | New
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


webmgr at muskingum.edu (2006-08-17 09:12) wrote:

Borrowing the code from the Save and Finish button on the Kronolith 2.1.2
Attendees page, I have added a Save and Finish button on the Permissions
dialog as well.

I apologize, I have no idea (but would love to learn) how to work with the
patch files, so I will just post my code changes as follows:

In "services/shares/edit.php" go to line 229 and add:
     if (Util::getFormData('addNewClose')) {
     Util::closeWindowJS();
     exit;
     }
It should appear directly between these two lines:
     $share->setPermission($perm, false);
---> Here
     $share->save();

In "templates/shares/edit.inc go to Line 217 where it should say:
     <input type="submit" class="button" value="<?php printf(_("Save %s"),
htmlspecialchars($share->get('name'))) ?>" />

Add the following code immediately after:
     <input type="submit" class="button" name="addNewClose" value="<?php
echo htmlspecialchars(_("Save and Finish")) ?>" />


If anyone has a better implementation, I'd love to hear it, otherwise this
would make a nice enhancement.




More information about the bugs mailing list