Hi all,
I have ran into an issue with custom fields after having published a new ad in a category with custom fields.
Using Osclass 3.5.6 and issue is occurring in Bender theme as well as my Boxer theme (permalinks = on ie. rewrites of url's).
Not sure if it would make any difference but here's how I have setup the custom fields:
1 category is having custom fields
All custom field types have been added once to the category (all having a unique id)
All custom fields were made 'searchable'.
1 custom field was made required.
To reproduce the issue I do the following:
- Publish a new ad
- Chose the category I have added the custom fields to
- Simply fill in some values, there's no difference in either filling in all custom fields or only a couple
- Save the ad
No problems here, all goes well and the ad gets saved.
In my setup I have also payment plugin installed so I get redirected to the form to chose to make the new ad premium.
I do not make it premium but simply click on the logo to get back to the homepage
Next I click on search without any keywords and I get redirected to the search form showing me all the ads of page1
Next I select the category where I added the custom fields to and then Advanced Search is showing me the extra custom search fields, perfect. The problem is that these new search fields already contain the values I used when publishing the new ad just before and even when clearing them in advanced search and renew the search the values does not seem to work, the values used when publishing the ad seem to be 'sticky' somehow.
Hoping others are able to reproduce/confirm this behaviour and maybe a fix for clearing the values of the custom fields after a new ad is published with these custom fields. Any help will be appreciated.
Once this is fixed I will focus on the search with the CF itself since I noticed they are throwing errors (404's) in certain cases which need fixing as well ofcourse!
1 Step at a time should hopefully give us a good working CF functionality.
Regards,
Eric