https://twill.io logo
Join Discord
Powered by
# ❓questions
  • k

    kalle

    11/23/2022, 8:12 PM
    I think there is an issue with loading browser relations here. https://github.com/area17/twill/blob/2.x/src/Repositories/Behaviors/HandleBrowsers.php#L249-L254 I couldnt find what is causing this, but if I fixed this manualy
    Copy code
    php
        private function getRelatedElementsAsCollection($object, $relation)
        {
            return collect(
                $object->$relation instanceof EloquentModel ? [$object->$relation] : $object->loadRelated($relation)
            );
        }
    L9 / Twill latest Someone aware of this?
  • i

    ifox

    11/23/2022, 8:41 PM
    Interesting. Are you using the new model strict features from L9?
  • k

    kalle

    11/23/2022, 8:42 PM
    Lemme check Not using these features in my current setup
  • i

    ifox

    11/23/2022, 9:09 PM
    Ok. If you can provide a small reproduction, that'd be helpful
  • k

    kalle

    11/23/2022, 9:13 PM
    Sorry, but its too much of project going on, no time to dissect into reproducable app.
  • i

    ifox

    11/23/2022, 9:17 PM
    Understood. Can you share a bit of context? Browsers that used to work on L8 stopped working, is that browsers on child modules?
  • k

    kalle

    11/23/2022, 9:23 PM
    I firstly tried with combined browser (parent - child modules) and that didnt work as expected, but its fixed with local overrides of child controller). After save records were inserted into related table, as expected. But after refresh they werent attached into form fields and didnt show up on form component. Debug led me to code snippet above, which wasnt collecting relations as before, so I checked
    HasRelated
    model trait and used same logic on that to get specific name browser from relation. A lot of fixes (module repo) to achive browser show in forms.
  • k

    kalle

    11/23/2022, 9:25 PM
    Repository fix which works now
  • h

    Hip-Hop

    11/24/2022, 7:28 AM
    Good afternoon, tell me how to make the blocks closed when the page loads
  • h

    Harings Rob

    11/24/2022, 7:33 AM
    That should be by default @Hip-Hop
  • t

    Tobi Wan

    11/24/2022, 7:34 AM
    I changed the default
    titleColumnKey
    in controller for that little create new item modal from
    title
    to something custom:
    Copy code
    class TestemonialController extends BaseModuleController
    {
        protected $moduleName = 'testemonials';
        protected $titleColumnKey = 'user_fullname';
        ....
    }
    How do I change the Label in the modal and in the list too?
    h
    • 2
    • 17
  • k

    kalle

    11/24/2022, 8:27 AM
    Any idea how to debug this? 😄 Vue dev tools stopped working, so I cant see what props are missing in browser
  • h

    Harings Rob

    11/24/2022, 8:34 AM
    not really, try to comment out some fields to figure out which field/type it is?
  • k

    kalle

    11/24/2022, 8:36 AM
    Commented all of the form code, still present.
  • h

    Harings Rob

    11/24/2022, 8:37 AM
    Time for a new computer then 🤷‍♂️ 😄
  • h

    Harings Rob

    11/24/2022, 8:37 AM
    What page are you getting this on? Twill version?
  • k

    kalle

    11/24/2022, 8:38 AM
    Module form, 2.11.0 v
  • h

    Harings Rob

    11/24/2022, 8:39 AM
    I do not have much time today unfortunately, can you make an issue? Then I will check it (maybe later) tomorrow.
  • k

    kalle

    11/24/2022, 8:39 AM
    Ill try to rebuild the assets, if that doesnt help, I will create an issue. Thank you 🙂
  • b

    BA7YA

    11/24/2022, 9:53 AM
    Hi guys. I found bug/feature in condition fields. If you have checkbox and some fields under checkbox condition. Reproduce: Checkbox - true fill all fields. Fields are saved in db. If you checkbox - false, then after update fields still saved in database and wont be deleted Does it known issue?
  • i

    ifox

    11/24/2022, 9:54 AM
    This error happens in the StickyNav component @kalle, check if you've correctly configured
    additionalFieldsets
  • i

    ifox

    11/24/2022, 9:55 AM
    Hi @BA7YA are you using keepAlive on the connected field?
  • i

    ifox

    11/24/2022, 9:56 AM
    If you are, it's normal, if not, it might be a bug
  • b

    BA7YA

    11/24/2022, 9:56 AM
    @ifox Im using it like that
  • i

    ifox

    11/24/2022, 9:57 AM
    ok so no keepAlive option
  • i

    ifox

    11/24/2022, 9:58 AM
    sounds like a potential bug then. If you check the checkbox again after unchecking it, are the fields empty?
  • b

    BA7YA

    11/24/2022, 9:58 AM
    They are not(
  • i

    ifox

    11/24/2022, 10:00 AM
    Are those fields in a block?
  • b

    BA7YA

    11/24/2022, 10:03 AM
    Yes
  • k

    kalle

    11/24/2022, 10:08 AM
    Tnx, it was that. I defined fieldsets and error disappeared. But now there is other one, and its probably related to browsers.
1...427428429...484Latest