<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: gform_after submission bug</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_after-submission-bug</link>
		<description>Gravity Support Forums Topic: gform_after submission bug</description>
		<language>en-US</language>
		<pubDate>Fri, 01 May 2026 12:17:46 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/gform_after-submission-bug" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "gform_after submission bug"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_after-submission-bug#post-101103</link>
			<pubDate>Tue, 11 Dec 2012 01:39:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">101103@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a specific problem you are having that you need help with, or were you just asking about that specific bit of code and operating on the empty $lead array?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jhage on "gform_after submission bug"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_after-submission-bug#post-100959</link>
			<pubDate>Mon, 10 Dec 2012 15:12:48 +0000</pubDate>
			<dc:creator>jhage</dc:creator>
			<guid isPermaLink="false">100959@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually I guess the check should work with an empty array according to the php docs&#60;br /&#62;
&#60;a href=&#34;http://php.net/manual/en/language.types.null.php&#34; rel=&#34;nofollow&#34;&#62;http://php.net/manual/en/language.types.null.php&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jhage on "gform_after submission bug"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_after-submission-bug#post-100950</link>
			<pubDate>Mon, 10 Dec 2012 14:50:53 +0000</pubDate>
			<dc:creator>jhage</dc:creator>
			<guid isPermaLink="false">100950@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;GravityForms Version 1.6.10&#60;/p&#62;
&#60;p&#62;in form_display.php in function process_form line 13 $lead variable is assigned&#60;/p&#62;
&#60;pre&#62;$lead = array();&#60;/pre&#62;
&#60;p&#62;later in process_form function on line 80 $lead varible is passed to handle_submission function&#60;/p&#62;
&#60;pre&#62;$confirmation = self::handle_submission($form, $lead, $ajax);&#60;/pre&#62;
&#60;p&#62;at this point $lead variable is still an empty array.  Then in handle_submission function on line 886 $lead is passed to RGFormsModel::save_lead  $lead is still empty array()&#60;/p&#62;
&#60;pre&#62;RGFormsModel::save_lead($form, $lead);&#60;/pre&#62;
&#60;p&#62;Then in forms_model.php in function RGFormsModel::save_lead on line 807 there is&#60;/p&#62;
&#60;pre&#62;if($lead == null){&#60;/pre&#62;
&#60;p&#62;$lead is still an empty array which is not the same as null so the code that actually inserts the lead into the db never gets called.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
