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

Fixed issue: Journal Entries can be renamed to blank via Detail View #663

Closed
wants to merge 1 commit into from

Conversation

devAbnull
Copy link
Contributor

Journal Entry can be renamed to blank when tried to rename via the Detail View.
Renaming directly from the list view was solved in #655.

@samdroid-apps
Copy link
Contributor

Hum, this changes worries me. While it prevents the user from changing the title to be nothing, it doesn't give them any feedback that the change has been prevented. Maybe that is something to look into if you wish to make this change?

@devAbnull
Copy link
Contributor Author

@samdroid-apps showing an alert message when the 'focus-out-event' signal is emitted would work.

@samdroid-apps
Copy link
Contributor

Yeah, you could do that

@devAbnull
Copy link
Contributor Author

An alert message added when the 'focus-out-event' signal is emitted and title box is empty.

if new_title == '' or new_title.isspace():
alert = Alert()
alert.props.title = _('Empty title')
alert.props.msg = 'The title cannot be empty'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put this string through gettext (_('...'))

@devAbnull
Copy link
Contributor Author

@samdroid-apps Done!

@davelab6
Copy link
Contributor

davelab6 commented Apr 4, 2016

Looks good to me :)

@quozl
Copy link
Contributor

quozl commented Nov 9, 2016

0.110.0 can still rename entries to blank in the detail view, when can we have this merged?

@i5o
Copy link
Contributor

i5o commented Nov 15, 2016

Just tested. It kinda works and It kinda doesn't.
Sometimes the alert is gone :/ (I mean: set the name to nothing, and press enter) the first time the alert is shown, the 2nd one it isn't.

Maybe I did something wrong!

btw, a249701#diff-3f4b091ed74fd4c7f130a59dddba9bebR504

please check pep8 (add space after #)

@i5o
Copy link
Contributor

i5o commented Nov 15, 2016

tested in sugar-build btw.

@i5o
Copy link
Contributor

i5o commented Dec 3, 2016

ping x2!

@quozl
Copy link
Contributor

quozl commented Dec 3, 2016

If @devAbnull is not available, feel free to diagnose and fix this yourself, and then make a new pull request with both their work and yours. On the other hand I'm still of the opinion that blank names should be allowed; see #4940.

@iamutkarshtiwari
Copy link
Contributor

@devAbnull Ping

@quozl
Copy link
Contributor

quozl commented Apr 27, 2017

See also #752

@devAbnull
Copy link
Contributor Author

@i5o I couldn't replicate the issue :(
Could you elaborate on replicating the issue.

@chimosky
Copy link
Member

chimosky commented Dec 6, 2021

Closed in favour of #949.

@chimosky chimosky closed this Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants