Bobblue : Maybee it is also when the User edited his booking, and not all conditional fields are loaded ?

    Bobblue

    Hi,

    We tried all ways but still can't replicate the issue, edit records but all conditional fields are still loaded. It would be great if you can share screenshots or record video so we can reproduce it.

      saguaros

      Nice try. I will do. First look told me that you changed something because there is now a gray box above the record...
      diff between playground and live page tells me:

      diff -r inseln-der-macht/administrator/components/com_dtregister/controllers/field.php idm-playground/administrator/components/com_dtregister/controllers/field.php
      408,409c408,412
      < 
      <             $where[] = "LOWER(name) LIKE '%" . $database->escape(trim(strtolower($search))) . "%'";
      ---
      > 			if($search == "hidden"){
      > 				$where[] = " hidden =1 ";
      > 			}else{
      >             	$where[] = "LOWER(name) LIKE '%" . $database->escape(trim(strtolower($search))) . "%'";
      > 			}
      Only in inseln-der-macht/administrator/components/com_dtregister/controllers: field.php.bkp
      diff -r inseln-der-macht/administrator/components/com_dtregister/controllers/user.php idm-playground/administrator/components/com_dtregister/controllers/user.php
      592a593,595
      > 		echo "<pre>";
      > 		//print_r($tUser);
      > 		echo "</pre>";
      diff -r inseln-der-macht/administrator/components/com_dtregister/models/devent.php idm-playground/administrator/components/com_dtregister/models/devent.php
      4483c4483
      < 
      ---

      let me find out what that exactly is!

        Bobblue

        So gray box is comming from the echo pre stuff in user.php.... doesnt change anything. but nice that you left the garbage in.

        The stuff in the field.php looks quit good. but field.php i exchanged because of this bug:
        https://www.joomlart.com/forums/d/19279-conditional-hidden-fields-bug-in-recursion
        but bringing the diff to production:
        dosn't change there the behavior in Safari (with https)....: hidden, conditional fields are not initial loaded once opening a record. and this stays so till i click on the conditional field
        changes the behavior in Chrome and Firefox (with https)...: hidden, conditional fields are not initial loaded once opening a record. this changes after waiting some time.... it are reloaded incrementally

        both is somehow wrong. My impression is, when it is not yet opened, reloaded and i already save the record, the not loaded field will be thrown away.

          Hi,

          The gray box is removed, the conditional fields are loaded via Ajax so it takes time a bit to load. I just tested in Safari on my Mac PC and it works fine now.

          We're also planning to improve on this by removing the ajax load for fields loading so it can be better.

          Regards

          13 days later

          Ok removing the Ajax load and put it to initial load is the quick solution on it. But when the list of fields becomes very long we can reach server limits. A flag that prevents the user / admin saving a only partial loaded record after modifications would be also a good idea from my point of view. And of cause a serverside Check if conditional mandatory fields ar set with throwing an error back to user/admin is also needed

            19 days later
            24 days later
            Write a Reply...
            You need to Login to view replies.