Bug 9657 - Saving an added variable seems to save all other added variables
Summary: Saving an added variable seems to save all other added variables
Status: ACCEPTED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low normal
Target Milestone: 5.99
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-05-20 09:08 UTC by Belen Barros Pena
Modified: 2025-06-11 08:57 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2016-05-20 09:08:39 UTC
When you add more than one variable via the "BitBake variables" page, and you change the value of one of them, the page interacts as if you were saving a change for all the added variables. 

Steps to reproduce:

1. Create a Toaster project
2. In the project configuration, go to the "BitBake variables" page
3. Using the "Add variable" form at the bottom of the page, add 2 variables and their corresponding values
4. Click the "Change" icon for the two variables you just added, so they are both in the editable state (their values display inside a text input field and you have 'save' and 'cancel' buttons next to it)
5. Edit the value of the first variable only, then click 'save'

Outcome: both added variables return to their non-editable state, instead of just the one you edited.

The problem seems to be in the onEditAjaxSuccess function 

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/toaster/toastergui/templates/projectconf.html#n466
Comment 1 Randy MacLeod 2023-10-24 14:24:27 UTC
Bulk move from 4.99 or 0.00 to 5.99