From: Remco de Boer <remcocdeboer@gm...> - 2013-08-24 18:51:51
I'm having an issue with partial forms using Semantic Forms 2.5.3. Whenever
I edit a page through Special:FormEdit/ThePartialForm/ThePage only
pairs are added to the template on the page. Any existing values that are
changed through the form are never updated. When the partial form uses a
multi-instance template, not even new values are added and the page is
never changed at all.
You can verify this behaviour at
page that the SF partial forms documentation links to). Just change some of
the items and/or add another and then choose 'show changes'. The result
will be empty, i.e., no changes are being seen.
I've been poking around a bit in the code of SF_AutoeditAPI.php, and found
1. around l.830, after executing , the variable $this->mOptions contains
the right values, however
2. the correct contents of $this->mOptions appear not to be transfered to
the $targetContent variable, which is used to edit the page around l.900 
I am stuck here, since I'm unsure how $this->mOptions and $targetContents
are supposed to be related. Can anyone with a better grasp of the SF code
design and its inner workings help me solve this issue?
Remco de Boer
// and merge/overwrite it with the new data
$this->mOptions = SFUtils::array_merge_recursive_distinct( $data,
$editor = $this->setupEditPage( $targetContent );
Get latest updates about Open Source Projects, Conferences and News.