<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Permissions Window - Save and Close</title> 
  <pubDate>Thu, 09 Apr 2026 17:42:24 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4307</link> 
  <atom:link rel="self" type="application/rss+xml" title="Permissions Window - Save and Close" href="https://bugs.horde.org/ticket/4307/rss" /> 
  <description>Permissions Window - Save and Close</description> 
 
   
   
  <item> 
   <title>Borrowing the code from the Save and Finish button on the Kr</title> 
   <description>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 &quot;services/shares/edit.php&quot; go to line 229 and add:

     if (Util::getFormData(&#039;addNewClose&#039;)) {

     Util::closeWindowJS();

     exit;

     }

It should appear directly between these two lines:

     $share-&gt;setPermission($perm, false);

---&gt; Here

     $share-&gt;save();



In &quot;templates/shares/edit.inc go to Line 217 where it should say:

     &lt;input type=&quot;submit&quot; class=&quot;button&quot; value=&quot;&lt;?php printf(_(&quot;Save %s&quot;), htmlspecialchars($share-&gt;get(&#039;name&#039;))) ?&gt;&quot; /&gt;



Add the following code immediately after:

     &lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;addNewClose&quot; value=&quot;&lt;?php echo htmlspecialchars(_(&quot;Save and Finish&quot;)) ?&gt;&quot; /&gt;





If anyone has a better implementation, I&#039;d love to hear it, otherwise this would make a nice enhancement.</description> 
   <pubDate>Thu, 17 Aug 2006 16:12:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4307#t23150</link> 
  </item> 
   
  <item> 
   <title>Slight correction



&gt; It should appear directly between the</title> 
   <description>Slight correction



&gt; It should appear directly between these two lines:

&gt;      $share-&gt;setPermission($perm, false);

&gt;      $share-&gt;save();

&gt; ---&gt; Here

</description> 
   <pubDate>Thu, 17 Aug 2006 18:51:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4307#t23152</link> 
  </item> 
   
  <item> 
   <title>Do we just want to make closing the window the default?</title> 
   <description>Do we just want to make closing the window the default?</description> 
   <pubDate>Sat, 19 Aug 2006 03:35:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4307#t23192</link> 
  </item> 
   
  <item> 
   <title>I thought about that too initially, but that would mean open</title> 
   <description>I thought about that too initially, but that would mean opening the window again and again if you want to add more than one user/group.</description> 
   <pubDate>Sat, 19 Aug 2006 08:34:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4307#t23195</link> 
  </item> 
   
  <item> 
   <title>True.</title> 
   <description>True.</description> 
   <pubDate>Sun, 20 Aug 2006 20:24:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4307#t23218</link> 
  </item> 
   
  <item> 
   <title>&gt; I thought about that too initially, but that would mean op</title> 
   <description>&gt; I thought about that too initially, but that would mean opening the 

&gt; window again and again if you want to add more than one user/group.



As did I, and that&#039;s why I opted to have both.</description> 
   <pubDate>Mon, 21 Aug 2006 01:09:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4307#t23221</link> 
  </item> 
   
  <item> 
   <title>Added to HEAD and FW_3.</title> 
   <description>Added to HEAD and FW_3.</description> 
   <pubDate>Tue, 21 Nov 2006 01:12:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4307#t26413</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
