Forum Replies Created
-
AuthorPosts
-
ndbeMemberThere was a topic about this. There is a bug in js.
My answer from this thread is a fix that i’m using (you have to edit core piklist files)
ndbeMemberTry this:
ndbeMemberYou can also use standard “save_post” filter and modify the fields you want after.
ndbeMemberif someone is struggling with original issue (lost add more items after remove) try this:
in file piklist.js (parts/js folder) around line 1495 change this code:$this.re_index($wrapper.parent(), true); $wrapper .trigger('piklistaddmore', [$wrapper, 'remove']) .remove();to this:
var $parent = $wrapper.parent(); $wrapper .trigger('piklistaddmore', [$wrapper, 'remove']) .remove(); $this.re_index($parent, true);It looks like this little patch fixed the issue for me.
ndbeMemberIt’s not a pretty way but you can always do this with JS.
ndbeMemberI think it’s default WordPress behavior. If you remove status with name ‘publish’ the button always changes to save and you have to set post status by hand. You can bypass this by creating post status with name publish and different label.
ndbeMemberYes exactly the same but in my installation last element vanishes after saving. That’s weird. Can you point me to the part of the plugin that should reindex things?
ndbeMemberWare you able to replicate this behavior?
ndbeMemberClean WordPress install with no plugins, only piklist [0.9.9.4]. After activation of piklist demos in the Add-More’s tab same problem. Serialized groups (“Todo’s (Serialized Group)” and “Newsletter Signup”) don’t reindex and all the elements after element that was deleted are gone.
Both on server with PHP 5.6.4. Wp_debug set to true returns no errors.
ndbeMemberCan you tell me where in the plugin code is function that should reindex the array?
ndbeMemberMaybe something is wrong with my code. I will have to look closer.
ndbeMemberAfter manual change of index directly in DB everything showed up again.
ndbeMemberAfter changing to:
piklist('field',array( 'type'=>'text', 'field'=>'latLng' ));everything works fine.
ndbeMemberOk new version fixed everything so topic can be closed.
-
AuthorPosts