item not showing in list until "updated"

blindmime
@blindmime
11 years ago
772 posts
I have a simple Aparna-generated module. In my item_index.tpl file I have lists by 4 different search critera. New items should show up under this:
{jrCore_list module="agTask" profile_id=$_profile_id order_by="_created asc" search1="task_complete != on" search2="task_category != Additional Services" search3="task_category != Concerns Observations" search4="task_entered != on"}
But what is happening is that new items do not show up at all when first created. They only show up if I click the Update icon and then hit submit.

I am in maintenance mode. But I have cleared caches and all that. The data shows up in the datastore as well.
updated by @blindmime: 06/07/14 11:52:02AM
blindmime
@blindmime
11 years ago
772 posts
I see the issue now. Since I didn't have the task_complete or task_entered checkboxes on the "create" form the fields didn't exist on this item.

If I put them there, then they have "off" values when created. I don't really want them on the create form, so how can I make this work?
brian
@brian
11 years ago
10,149 posts
It should work the way it is - when you use != for a search, you will get all items that HAVE the key set to a value other than what you are asking for AND all items that don't even have the key.

I've got a unit test here that tests specifically for this condition and it is working. Are you running an up to date install of the core?

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
Yes, the core is current.

edit: Actually, this one slipped past me. It was back on 5.1.28. I'll let you know if updating fixes the issue for me.
updated by @blindmime: 05/07/14 04:46:50AM
douglas
@douglas
11 years ago
2,806 posts
Can you make the create form field an admin only field?

That would hide it from your users in the create form only.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
blindmime
@blindmime
11 years ago
772 posts
Thanks, Douglas -- I'll try that if I'm still having issues.

Tags