3liz / qgis-pgmetadata-plugin

QGIS Plugin to manage some metadata from PostgreSQL layer
GNU General Public License v2.0
12 stars 10 forks source link

form view editing auto-switches to first feature #105

Closed zackarno closed 8 months ago

zackarno commented 2 years ago

Hello,

I noticed that when if I have more than one table connected to the "Dataset" table in the QGIS pgmetadata manager project I cannot edit attributes under the attributes tab using form view. As soon as I enter a text box and begin typing the form automatically switches to the first feature in the "Dataset". This is also true for any of the other widgets- again it automatically switches to the first feature. I am able to edit all the data fine in table view however.

I am not sure if this is a bug or if I am just not understanding something. Thanks!

zackarno commented 2 years ago

The only work-around I have found to edit features in form view is to select the feature then click Show Selected Features . After doing this I am able to edit features metadata in the form view without it auto toggling/switching to the first feature in the table.

It seems like this is not the intended work-flow as it is not what occurs in the video demonstration tutorials. Also this is not an issue when editing other QGIS files in form view.

effjot commented 2 years ago

This happens to me sometimes, too. I am not sure how to reproduce it. Some admin projects work fine, others show the behaviour you’ve mentioned. It might be related to this Qgis issue: https://github.com/qgis/QGIS/issues/46730

It seems that the problem stops when I select to correct entry again after the attribute form jumped to the first entry.

effjot commented 2 years ago

I’ve reinstalled old Qgis versions: 3.10 on my Debian machine at home and 3.16 on Windows at work. Both behave normally, whereas version 3.22 (at least since 3.22.5) on both OSes exhibits this issue.

effjot commented 2 years ago

The bug is gone in Qgis 3.24 (Tisler) :-)

effjot commented 8 months ago

QGIS 3.28 (current LTR) is ok, too. So this issue could probably be closed in my opinion.

Gustry commented 8 months ago

Thanks for checking