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

Bug: Behavior cannot be translated in the Edit Behavior page #1908

Open
AndroidOL opened this issue Feb 27, 2025 · 0 comments
Open

Bug: Behavior cannot be translated in the Edit Behavior page #1908

AndroidOL opened this issue Feb 27, 2025 · 0 comments
Labels

Comments

@AndroidOL
Copy link

AndroidOL commented Feb 27, 2025

Describe the Bug

behaviour_manage_edit.php line 148

Please modify the text box to a selection box and separate the data from the text. Otherwise, the displayed behavior type will not be translatable.

And, This is a logical error. If it is an immutable text box (using the translated text), why does it submit and update the original record, and why do some errors appear when outputting next time? The update processing page should not record this value, it should not be modified.

To Reproduce

behaviour_manage_edit.php line 148

//Type
$row = $form->addRow();
$row->addLabel('type', __('Type'));
$row->addTextField('type')->setValue($values['type'])->required()->readonly();

Expected behavior

$row->addSelect('type')->setValue($values['type'], __($values['type']))->required()->readonly();

Actual behavior

The displayed behavior type will not be translatable.

Screenshots

No response

Gibbon version

28.0.01

Browser

Chrome

Browser Version

No response

Additional Context

No response

@AndroidOL AndroidOL added the bug label Feb 27, 2025
@AndroidOL AndroidOL changed the title Bug: behavio cannot be translated in the Edit Behavior page Bug: Behavior cannot be translated in the Edit Behavior page Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant