<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Ajax Inquiry Fixes]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7385</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7385&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Ajax Inquiry Fixes.]]></description>
		<lastBuildDate>Mon, 12 Mar 2018 07:44:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31092#p31092</link>
			<description><![CDATA[<p>I too am uncertain of what would happen if such data is exposed in the URL and whether it can be used to hijack the session even though my last attachment works. This is so even if the backwards compatibility is not even there and for PHP 5.6+ itself.</p><p>Now that these fixes have been rolled back, those who still want this functionality of using the back button on the browser instead of the back link on the FA page and then returning to the page to where they left off, can partake of the consolidated fixes attached herein.</p><p>Await @itronics words of wisdom....</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 12 Mar 2018 07:44:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31092#p31092</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31087#p31087</link>
			<description><![CDATA[<p>The former commit of this issue has been rolled back due to the unknown consequences needed by the backwards compatibility to the prior php 5.6 versions.</p><p>Janusz will give a short explanation to this.</p><p>/Joe.</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 11 Mar 2018 22:29:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31087#p31087</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31085#p31085</link>
			<description><![CDATA[<p>Attached is the set of files and the diff for incorporation into the core after the last @braathwaate commit in FA and in his pull request that included backwards PHP compatibility. Kindly test and see what gives.</p><p>@joe: can check and commit.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 10 Mar 2018 12:13:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31085#p31085</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31075#p31075</link>
			<description><![CDATA[<p>@braathwaate has now provided <a href="https://github.com/apmuthu/frontac24/pull/8/files#diff-54de953d5074b66db5eb23b61fbe3d46">backwards compatibility</a> (using the NonSplat_fix.diff in Post #3 here) where both <strong>get_js_history()</strong> and <strong>set_posts()</strong> work. As an example, after applying the fix above, the file <strong>sales/inquiry/sales_orders_view.php</strong> works for both Ajax as well as js history of the $_POST variables from the form.</p><p>Using the attachment, test by entering a transaction_number under &quot;#&quot; and then moving the cursor to the next field - the ajax will refresh the filtered page.</p><p>Some of the inquiry files will need to be synched with subsequent changes in the core.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 09 Mar 2018 18:36:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31075#p31075</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31071#p31071</link>
			<description><![CDATA[<p>This entire commit should be made backwards compatible as in my previous post <s> (or a comment added that it is for PHP v5.6+ only)</s> as the current PHP versions that FA supports cannot handle the new constructs effectively. There are no $_GET variables available when the new set_posts() function is called in this way as the session.inc erases all $_GET values except for those coming in thru Ajax - js http requests. The set_posts() however acquires the ajaxed GET variables correctly.</p><p>The persistence of the history works on substitution of <em>...$vars</em> with&nbsp; <em>$vars</em> and changing to&nbsp; <em>get_js_history(array(......))</em>. <s>The ChangeVar of the combo boxes do not work even with the <em>set_posts(array(......))</em> fix</s>.</p><p>For those wishing to test it further, the attachment would be useful. It contains the BraathWaate files with the existing counterparts in the core and the altered ones to incorporate this commit into the inquiry files with the backwards compatibility fix for the new functions.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 09 Mar 2018 11:03:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31071#p31071</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31055#p31055</link>
			<description><![CDATA[<p>Thanks @joe.</p><p>There are a host of inquiry files that needs to be merged and tested as well.<br />Will get the diffs after testing.</p><p>In <strong>includes/ui/ui_view.inc</strong>, the newly added functions <strong>set_posts()</strong> and <strong>get_js_history()</strong> use the splat operator available in PHP 5.6+ for <a href="http://php.net/manual/en/functions.arguments.php#functions.variable-arg-list">variable length argument lists</a>. </p><p>Some workarounds are <a href="https://stackoverflow.com/questions/3570496/best-way-to-emulate-ruby-splat-operator-in-php-function-signatures-method-ove">here</a>.</p><p><strong>We need to make it backwards compatible with the attached diff file.</strong></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 08 Mar 2018 14:44:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31055#p31055</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31053#p31053</link>
			<description><![CDATA[<p>This has been fixed and <a href="https://github.com/FrontAccountingERP/FA/commit/9738f7d64641df18b688f0d03a3b62c93f40e0c7">committed</a>. Thanks.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 08 Mar 2018 14:25:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31053#p31053</guid>
		</item>
		<item>
			<title><![CDATA[Ajax Inquiry Fixes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31041#p31041</link>
			<description><![CDATA[<p>@braathwaate has sent me a good <a href="https://github.com/apmuthu/frontac24/pull/8">pull request</a> that needs to be incorporated into the core after checking if any critical extension breaks. The key file diffs are attached - <strong>includes/ui/ui_view.inc</strong> and <strong>js/insert.js</strong>.</p><p>@joe/@itronics: can do the needful.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 08 Mar 2018 02:54:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31041#p31041</guid>
		</item>
	</channel>
</rss>
