koillection icon indicating copy to clipboard operation
koillection copied to clipboard

Can't add list to old items/collections

Open Izanagi52 opened this issue 3 years ago • 9 comments

Hello, thanks for the recent update, the list are really great ! But I have an error when I try to add a list to an item/collections created in 1.3.6, before the update. The error occurs when I validate the change in the item/collections. IMG_20220728_111726

(It works perfectly with new item/collections)

Izanagi52 avatar Jul 28 '22 09:07 Izanagi52

Hello, could you try to activate debug mode and see if you have more details about this error ? (add APP_DEBUG=1 in your docker-compose file like below)

koillection:
    image: koillection/koillection
    container_name: koillection
    restart: unless-stopped
    ports:
        - 80:80
    environment:
        - APP_DEBUG=1
        - DB_DRIVER=pdo_pgsql (or pdo_mysql)
        - DB_NAME=koillection
        - DB_HOST=db
        - DB_PORT=5432 (3306 for mysql)
        - DB_USER=root
        - DB_PASSWORD=root
        - DB_VERSION=12.2
        - PHP_TZ=Europe/Paris
        - HTTPS_ENABLED=1

Thanks

benjaminjonard avatar Jul 28 '22 10:07 benjaminjonard

I think I found the issue, do you have a "Date" metadata in your item or collection ?

benjaminjonard avatar Jul 28 '22 10:07 benjaminjonard

Yes I have (for new and old items). And all my old items have date.

And when I add APP_DEBUG=1 I have this : Screenshot_2022-07-28-12-37-43-798_com android chrome~2 (Maybe unrelated)

Izanagi52 avatar Jul 28 '22 10:07 Izanagi52

I published a new release (1.3.8) that should fix the problem

benjaminjonard avatar Jul 28 '22 13:07 benjaminjonard

Yes it's works ! Merci !

But... I found another little problem (sorry).

If the value of a list contain special characters, it get removed the next time I edit the item.

My exemple : I have a list that contains :

  • Shōnen
  • Seinen
  • Shōjo

If a add this list to a item, select as value Shōnen, and validate, the value is correctly set ( I see it on the item page). But the next time I edit this item, the value of this list become empty, I need to reselect Shōnen before validating. Same things happens with Shōjo, but not with Seinen. And if I selected Shōnen and Seinen as value, only Shōnen disappears.

(I hope you understand me, English is not my native language, I'm french)

Izanagi52 avatar Jul 28 '22 13:07 Izanagi52

(And if we can reorder element when we edit a list, it would be very great, but I can open another issues for that if it's better for you)

Izanagi52 avatar Jul 28 '22 14:07 Izanagi52

No problem (I'm french too) The issue for special characters should be fixed by the last release (1.3.9) I also included the possibility to reorder choices in select lists

benjaminjonard avatar Jul 29 '22 11:07 benjaminjonard

1.3.9 solved the second issue, thanks for your reactivity! But I have a problem with reordering list made before the update.

Izanagi52 avatar Jul 29 '22 12:07 Izanagi52

When I reorder a list made in previous version, the order isn't correctly saved. Exemple with my list (element renamed with number for simplicity) : I have a list with 1,2,3,4,5,6,7,8 I go to the list, reorder element (in any order, one or multiple changement) like this 1,3,5,7,2,4,6,8 When I save the list, it got ordered something like this : 6,8,1,3,5,7,2,4

(It's not very important for me, so if you want, you can close this issue, but I keep my old list if needed for test)

Izanagi52 avatar Jul 29 '22 12:07 Izanagi52