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

Added validation to currency update. #17256

Open
wants to merge 2 commits into
base: developer
Choose a base branch
from

Conversation

areksolek
Copy link
Contributor

Added validation to currency update.

@areksolek areksolek added the ✔ finished This pull request has been finished. label Aug 23, 2023
@areksolek areksolek added this to the YetiForce 7.0 milestone Aug 23, 2023
App.Fields.Date.register('#datepicker', false, {});
let form = container.find('.js-currency-update');
let bank = form.find('#bank');
container.on('click', '.js-download', function (e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

</td>
<td class="fieldValue">
<div class="row">
<div class="col-md-5">
<select name="bank" id="bank" class="select2 form-control">
<select name="bank" id="bank" class="select2 form-control" required="true" data-validation-engine="validate[required]">
Copy link
Contributor

Choose a reason for hiding this comment

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

one required

@@ -16,27 +16,26 @@
<strong>{\App\Language::translate('LBL_WARNING', $QUALIFIED_MODULE)}</strong> {\App\Language::translate('MSG_NO_NET_CONN', $QUALIFIED_MODULE)}
</div>
{/if}
<form class="form-horizontal" method="post" action="index.php?module={$MODULENAME}&view=Index&parent=Settings">
<form class="form-horizontal js-currency-update" method="post" action="index.php?module={$MODULENAME}&view=Index&parent=Settings" data-js="container">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<form class="form-horizontal js-currency-update" method="post" action="index.php?module={$MODULENAME}&view=Index&parent=Settings" data-js="container">
<form class="form-horizontal js-currency-update_form" method="post" action="index.php?module={$MODULENAME}&view=Index&parent=Settings" data-js="container">

@rskrzypczak rskrzypczak added 🔧 AmendmentsRequired This pull request requires some amendments in order to be merged. and removed ✔ finished This pull request has been finished. labels Aug 25, 2023
@areksolek areksolek removed their assignment Aug 25, 2023
@areksolek areksolek added ✔ finished This pull request has been finished. and removed 🔧 AmendmentsRequired This pull request requires some amendments in order to be merged. labels Aug 25, 2023
</td>
<td class="fieldValue">
<div class="row">
<div class="col-md-5">
<select name="bank" id="bank" class="select2 form-control">
<option value="0" {if !$ACTIVE_BANK}selected{/if}>{\App\Language::translate('LBL_SELECT_OPTION', $QUALIFIED_MODULE)}</option>
<select name="bank" id="bank" class="select2 form-control" data-validation-engine="validate[required]">
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you set this field as mandatory if you want to be able to delete a bank

@rskrzypczak rskrzypczak added 🔧 AmendmentsRequired This pull request requires some amendments in order to be merged. and removed ✔ finished This pull request has been finished. labels Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 AmendmentsRequired This pull request requires some amendments in order to be merged.
Projects
YetiForceCRM
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants