*

siken

  • ****
  • 136 posts
Error editing in mobile phone field
« on: January 17, 2020, 02:57:02 PM »
When I edit a publication, the mobile field is filled with the number it takes from the cache or the last one added but not from its own publication. If the publication did not have a mobile, the last one added in itempost is added.
« Last Edit: January 17, 2020, 02:58:56 PM by alexandromt »

*

MB Themes

Re: Error editing in mobile phone field
« Reply #1 on: January 20, 2020, 04:11:45 PM »
@alexandromt
Osclass cache input fields in order to prevent data loss when error found in data while publishing. Then on next page show data are filled from cache.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Re: Error editing in mobile phone field
« Reply #2 on: April 23, 2020, 07:07:11 PM »
While edit any ad -

if we edit content in description field and save ad , here edit form mobile number auto inserted last ad edited , so many ads lost correct mobile number. And then our ads gone wrong data.

If we refresh edit form without any changes, just refresh then correct phone number showing but 1st time default is wrong or last edited ad number showing ...why ..?

what is solution ...?

its big problem in beta theme.

don't want cache value & if no any phone number previews added then want blank or empty, but why wrong phone number ...?

 

*

MB Themes

Re: Error editing in mobile phone field
« Reply #3 on: April 24, 2020, 07:57:25 AM »
@Ajit
I did not understood what is actually issue.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Re: Error editing in mobile phone field
« Reply #4 on: April 24, 2020, 08:29:07 AM »
See, when we edit any ad - beta theme - osclass 3.8.0 - php 7.0

item edit form - auto value fetch like title , desc , tag etc here  mid section - About You section - Name - Phone - Email field.

Name & Email read-only so cant edit, but phone field editable.

Here phone value wrong show - means if ad id i_1452  this ad we used phone number - 9988776655   ok   but when edit same ad

phone field value not same as 9988776655  here last edited ad phone value showing like 9876543210  etc.

If no proper check & just edit title & save ad then sure phone number wrong update while editing other any field.

check attached jpg.


   

*

MB Themes

Re: Error editing in mobile phone field
« Reply #5 on: April 24, 2020, 06:36:59 PM »
@Ajit Sahane
Some data during publishing of listing are stored in session, so in case there is validation error when publishing listing, user does not need to fill all inputs again.
Question comes, why would 1 user use 2 phone numbers?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Re: Error editing in mobile phone field
« Reply #6 on: April 25, 2020, 06:29:07 AM »
... 1) Some data during publishing of listing are stored in session, so in case there is validation error when publishing listing, user does not need to fill all inputs again.    --  OK   

1st - No any error while publishing ad. But if bymistek we put on wrong data in description then we trying to correct it.

If we edit 3 ads 1 by 1 then -   1st ad ok edit -  2nd ad while editing - description content here Phone value not come 2nd ad id - its come 1st ad id or just last 1 edited ad id Phone value ......why ..?

Here is big issue. if we not edit any phone value in 1st or 2nd ad - still 2nd ad phone value changed. its showing last 1 ad value.

this is big bug in this theme.


... 2) Question comes, why would 1 user use 2 phone numbers?    -  No any 2 phone numbers - just 1 used.


Try yourself -  any 3 ads edit -   & check each time editing phone value how show. you understand what is issue.

Bucz may be still issue not understand perfectly. 

*

MB Themes

Re: Error editing in mobile phone field
« Reply #7 on: April 26, 2020, 12:09:58 PM »
But each time phone will be same as 1 user has no reason to use different phone numbers, so I will not be able to reproduce issue.

Once you remove following 2 lines in function.php, session will not be stored anymore:
Code: [Select]
osc_add_hook('pre_item_post', 'bet_post_preserve');
osc_add_hook('posted_item', 'bet_post_drop');

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots