Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relations Subforms - Start/Stop editing problem #19794

Closed
qgib opened this issue Oct 30, 2014 · 12 comments
Closed

Relations Subforms - Start/Stop editing problem #19794

qgib opened this issue Oct 30, 2014 · 12 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 30, 2014

Author Name: Pedro Venâncio (Pedro Venâncio)
Original Redmine Issue: 11524
Affected QGIS version: master
Redmine category:forms
Assignee: Matthias Kuhn


There is a problem in toggle editing button of subforms.

To start editing, you need to click 2-3 times to toggle editing button. The same happens to stop editing.

This problem is recent in master, but I can not say how long, because I have not used this feature in master in the last days (maybe two weeks).

Tested with QGIS 2.5.0-115 (OSGeo4W 64bits).


@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2014

Author Name: Pedro Venâncio (Pedro Venâncio)


Sorry, I forgot to fill the Category -> +Forms+.

@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2014

Author Name: Giovanni Manghi (@gioman)


I have seen this on master/linux too.


  • category_id was configured as Forms

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2014

Author Name: Denis Rouzaud (@3nids)


I also confirm.
Would be quite painful to release with this one.


  • assigned_to_id was configured as Matthias Kuhn

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2014

Author Name: Jürgen Fischer (@jef-n)


quick sample project?

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2014

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "48af54316f49d10187e92be9343c57e0a06ef72e".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2014

Author Name: Denis Rouzaud (@3nids)


that did not solve the problem for me.
toggling the editing button does not change anything in the embed form.


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2014

Author Name: Giovanni Manghi (@gioman)


Denis Rouzaud wrote:

that did not solve the problem for me.
toggling the editing button does not change anything in the embed form.

seems to work here, just tested qgis 2.6 from osgeo4w.


  • status_id was changed from Reopened to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2014

Author Name: Pedro Venâncio (Pedro Venâncio)


Giovanni Manghi wrote:

Denis Rouzaud wrote:

that did not solve the problem for me.
toggling the editing button does not change anything in the embed form.

seems to work here, just tested qgis 2.6 from osgeo4w.

Hi Denis,

I've tested it with QGIS 2.6 on Windows and Linux and the problem seems resolved.

@qgib
Copy link
Contributor Author

qgib commented Nov 3, 2014

Author Name: Giovanni Manghi (@gioman)


I assume that this is really fixed as any test (on Windows and Linux) show it is, please reopen if necessary.


  • status_id was changed from Feedback to Closed
  • resolution was changed from to fixed/implemented

@qgib
Copy link
Contributor Author

qgib commented Jan 5, 2015

Author Name: Larry Shaffer (Larry Shaffer)


Hi,

Not entirely fixed yet. If the child layer of the relation is left in edit mode when the dialog is closed, the 3-click issue (just for starting editing of the child) appears again on next opening of the same dialog.

Reopening the issue so another user may submit a suggested patch and sample project.


  • fixed_version_id was changed from Version 2.6 to Version 2.8
  • status_id was changed from Closed to Reopened
  • priority_id was changed from Severe/Regression to High
  • resolution was changed from fixed/implemented to

@qgib
Copy link
Contributor Author

qgib commented Jan 11, 2015

Author Name: Benjamin Trigona-Harany (Benjamin Trigona-Harany)


Hello,

I did some testing and the issue appears to be that when creating QgsRelationEditorWidget, we need to set the button toggle state only once the relation feature is set with setRelationFeature(). You can see the bug in the attached project in 2.6.1 by editing the parent feature.

The attached patch should fix the issue.


  • 8280 was configured as qgis_11524.diff
  • 8279 was configured as bug.tar.bz2

@qgib
Copy link
Contributor Author

qgib commented Jan 12, 2015

Author Name: Matthias Kuhn (@m-kuhn)


Patch applied in ba495f3
Thank you very much Benjamin.
If you have further fixes or improvements, it would be best to create pull requests for it on github, that way they can be easier reviewed, discussed and merged.


  • status_id was changed from Reopened to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Forms labels May 25, 2019
@qgib qgib added this to the Version 2.8 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority
Projects
None yet
Development

No branches or pull requests

1 participant