<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Extra arg in submit_return() usage and F4 popup fix]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6947</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6947&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Extra arg in submit_return() usage and F4 popup fix.]]></description>
		<lastBuildDate>Mon, 28 Aug 2017 18:34:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Extra arg in submit_return() usage and F4 popup fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28503#p28503</link>
			<description><![CDATA[<p>The final fix for this would be to replace the following lines in <strong>inventory/manage/items.php</strong>:<br /></p><div class="codebox"><pre><code>        submit_center_first(&#039;addupdate&#039;, _(&quot;Update Item&quot;), &#039;&#039;, 
            $page_nested ? true : &#039;default&#039;);
        submit_return(&#039;select&#039;, get_post(&#039;stock_id&#039;), 
            _(&quot;Select this items and return to document entry.&quot;), &#039;default&#039;);</code></pre></div><p>with<br /></p><div class="codebox"><pre><code>        if (@$_REQUEST[&#039;popup&#039;]) hidden(&#039;popup&#039;, 1);
        submit_center_first(&#039;addupdate&#039;, _(&quot;Update Item&quot;), &#039;&#039;, 
            $page_nested ? true : &#039;default&#039;);
        submit_return(&#039;select&#039;, get_post(&#039;stock_id&#039;), 
            _(&quot;Select this items and return to document entry.&quot;));</code></pre></div><p><s>@joe: you can commit this now.</s><br /><a href="https://github.com/FrontAccountingERP/FA/commit/87a27221d33ab1741603d28369ec2fbf56da5a33">Committed</a></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 18:34:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28503#p28503</guid>
		</item>
		<item>
			<title><![CDATA[Extra arg in submit_return() usage and F4 popup fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28502#p28502</link>
			<description><![CDATA[<p>The <strong>function submit_return()</strong> defined in <strong>includes/ui/ui_input.inc</strong> takes in 3 arguments but it&#039;s usage in <strong>inventory/manage/items.php</strong> shows 4 arguments. The last one in it can be omitted.</p><p>Please note that it&#039;s usage in <strong>items.php</strong> when F4 is invoked (or independantly invoked as in http://localhost/fa24//inventory/manage/items.php?stock_id=101&amp;popup=1) hides the &quot;Select&quot; button on item change in drop down box or on update. This needs to be rectified. This is because when first invoked, the GET parameter <strong>popup=1</strong> is available. On subsequent ajax and other posts, it is not available and the conditional submit() in the submit_return() blanks it out.</p><p>The actual Items Select button html is:<br /></p><div class="codebox"><pre><code>&lt;button 
        class=&quot;ajaxsubmit&quot;
        type=&quot;submit&quot; 
        aspect=&quot;selector&quot; rel=&quot;101&quot;
        name=&quot;select&quot; 
         id=&quot;select&quot; 
        value=&quot;Select&quot; 
        title=&quot;Select this items and return to document entry.&quot;&gt;
    &lt;img height=&quot;12&quot; 
         alt=&quot;&quot; 
         src=&quot;../../themes/default/images/ok.gif&quot;&gt;
    &lt;span&gt;Select&lt;/span&gt;
&lt;/button&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 17:53:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28502#p28502</guid>
		</item>
	</channel>
</rss>
