Jump to content


MultiSelect_Searchable not updating or inserting value

multiselect_searchable laravel

  • Please log in to reply
5 replies to this topic

#1 dbarros

dbarros

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationFlorida

Posted 02 April 2019 - 04:42 PM

PHP version: PHP 7.3.3 (cli) (built: Mar  8 2019 16:40:07) ( NTS )

Laravel: 5.8

GCE: 2.3.7

 

Screen Shot 2019-04-02 at 12.28.40 PM.png

 

 

js error while selecting value from dropdown 

grocery-crud-v2.7.3.55d7110.js:2249 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.from (<anonymous>)
    at _toConsumableArray (grocery-crud-v2.7.3.55d7110.js:2249)
    at InputMultiselectSearchable.linkedChange (grocery-crud-v2.7.3.55d7110.js:2290)
    at HTMLSelectElement.onChosenChange (grocery-crud-v2.7.3.55d7110.js:14782)
    at HTMLSelectElement.dispatch (jquery.js:5206)
    at HTMLSelectElement.elemData.handle (jquery.js:5014)
    at Object.trigger (jquery.js:8201)
    at HTMLSelectElement.<anonymous> (jquery.js:8269)
    at Function.each (jquery.js:362)
    at jQuery.fn.init.each (jquery.js:157)
_toConsumableArray @ grocery-crud-v2.7.3.55d7110.js:2249
linkedChange @ grocery-crud-v2.7.3.55d7110.js:2290
onChosenChange @ grocery-crud-v2.7.3.55d7110.js:14782
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014
trigger @ jquery.js:8201
(anonymous) @ jquery.js:8269
each @ jquery.js:362
each @ jquery.js:157
trigger @ jquery.js:8268
Chosen.result_select @ grocery-crud-v2.7.3.55d7110.js:11549
Chosen.search_results_mouseup @ grocery-crud-v2.7.3.55d7110.js:11441
(anonymous) @ grocery-crud-v2.7.3.55d7110.js:11154
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014

create Crud column  

  $isoDocs->fieldType(
                'isoRelatedID',
                'multiselect_searchable',
                Isodocs::getDocsList()
            );

data sample

Collection {#399 ▼
  #items: array:20 [▼
    1 => "WI-714-001"
    2 => "WI-850-001"
    3 => "WI-850-002"
    4 => "WI-850-003"
    5 => "WI-850-004"
    6 => "WI-850-005"
    7 => "WI-850-006"
    8 => "WI-715-001"
    9 => "WI-714-002"
    10 => "WI-850-007"
    11 => "WI-850-008"
    13 => "WI-850-009"
    14 => "WI-714-003"
    15 => "WI-850-010"
    16 => "WI-850-011"
    17 => "WI-850-012"
    18 => "WI-850-013"
    19 => "WI-850-014"
    20 => "WI-830-001"
    22 => "WI-850-015"
  ]
}

any help is appreciated, I tried using the document_name instead of the id however still getting same error. 

 

FYI  it's working as expected  with multiselect_native 



#2 dbarros

dbarros

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationFlorida

Posted 02 April 2019 - 04:47 PM

It also seems like the search is not working, please see attachments. 

Attached Thumbnails

  • Screen Shot 2019-04-02 at 12.44.27 PM.png
  • Screen Shot 2019-04-02 at 12.44.14 PM.png


#3 flawless

flawless

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 23 May 2019 - 01:57 AM

I'm having the same issues.



#4 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,101 posts
  • LocationLondon

Posted 24 May 2019 - 05:12 AM

Hello @dbarros and @flawless,

 

I've created a ticket for that so I can investigate more on it. You can find the ticket here: https://trello.com/c...inserting-value

 and you can follow the progress of it by pressing the button "follow":

Screenshot 2019-05-24 at 08.09.20.png

 

I will inform this forums post once this is done and released on the next version.

 

Till the bug is fixed can you please use: "multiselect_native" as a work-around?

 

Regards

Johnny


Posted Image

#5 dbarros

dbarros

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationFlorida

Posted 28 May 2019 - 01:26 PM

Hello @dbarros and @flawless,

 

I've created a ticket for that so I can investigate more on it. You can find the ticket here: https://trello.com/c...inserting-value

 and you can follow the progress of it by pressing the button "follow":

attachicon.gifScreenshot 2019-05-24 at 08.09.20.png

 

I will inform this forums post once this is done and released on the next version.

 

Till the bug is fixed can you please use: "multiselect_native" as a work-around?

 

Regards

Johnny

Thanks @web-johnny for the follow up.



#6 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,101 posts
  • LocationLondon

Posted 10 June 2019 - 07:04 AM

Hello all,

 

I am glad to inform you that the new version (2.7.5) is fixing this bug. In order to download the latest version you can go to the URL here: https://www.groceryc..._latest_version

 

Please let me know in case you are still having issues.

 

Regards

Johnny


Posted Image





Also tagged with one or more of these keywords: multiselect_searchable, laravel

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users