departement-maine-et-loire / transferticketentity

GNU General Public License v3.0
10 stars 0 forks source link

1.1.3 - Bug when saving changes on entity #30

Closed andrepetinga closed 4 months ago

andrepetinga commented 4 months ago

After installing the new version (1.1.3) I went to Entity to see the new options. When I made a change on the configuration and it "Save", the "Allow Transfer function" always changes to "No". Checking the sql logs, I saw this:

image

I have this:

image

When I it Save, it shows this:

image

Even if I choose a default Entity (not null), the problem remains, because the column "itilcategories_id" is not present on the DB table

image

UPDATE: Just checked the source code, and the column is there

image

But I think the problem is that you have the if statement

if (!$DB->TableExists("glpi_plugin_transferticketentity_entities_settings")) {

And since I already had the table from the previous version, it didn't add the new column

YannickComba commented 4 months ago

Hello,

Yes it's an issue when plugin is update. Uninstall and install should solve your issue. Also for the "default category" displayed, it seems to be a cache issue. Try to open your browser in private, it should work better as well.

Regards.

andrepetinga commented 4 months ago

Yes, uninstall and install again worked. Yes, Ctr + F5 made the "default category" go away, when "Allow Transfer function" is set to "No".

Let me just send you the updated version of the Portuguese (Portugal) locale. I saw 3 new lines :)

pt_PT.zip

The default category = "null", I can't find any translation option on the EN locale. So I can't translate that...

YannickComba commented 4 months ago

Thanks for your help,

We should open a Transifex project soon so it'll be easier for translations later. For "null" word, it's intentional since it's a state, there's no need for a translation for this word.

Regards.