Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AJAX editing leads to empty date fields on aftersave event
#2
I suppose that if the user you test with has ISO date format (Y-m-d) it works correctly. If that is the case, I'd say you have to unset the ajxaction REQUEST varaible:


PHP Code:
$_REQUEST['ajxaction'] == 'DETAILVIEW' 


when in AJAX inline edit mode this variable is set to indicate that all the values are set to database values. In other words, in inline edit mode the application only expects the field being saved to be in the user format, all the rest have been directly read from the database and do not need conversion. Since you are converting them, when MySQL see the value it is in the format of the user and blanks it. At least that is what I am suspecting.

try and


PHP Code:
unset($_REQUEST['ajxaction']); 



in your handler and let me know how it goes.
Joe
TSolucio
Reply


Messages In This Thread
RE: AJAX editing leads to empty date fields on aftersave event - joebordes - 10-25-2017, 11:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)