Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
phabricator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Phabricator
phabricator
Commits
e3216d6e
Commit
e3216d6e
authored
Dec 13, 2019
by
Ana Rute Mendes
🌈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CCU: purchasing: auto fill currency fields of extra items
parent
53b83eb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
resources/celerity/map.php
resources/celerity/map.php
+2
-2
webroot/rsrc/js/extensions/snipe-fields-validation.js
webroot/rsrc/js/extensions/snipe-fields-validation.js
+8
-0
No files found.
resources/celerity/map.php
View file @
e3216d6e
...
...
@@ -514,7 +514,7 @@ return array(
'rsrc/js/core/darkconsole/DarkMessage.js'
=>
'26cd4b73'
,
'rsrc/js/core/darkconsole/behavior-dark-console.js'
=>
'457f4d16'
,
'rsrc/js/core/phtize.js'
=>
'2f1db1ed'
,
'rsrc/js/extensions/snipe-fields-validation.js'
=>
'
efef003f
'
,
'rsrc/js/extensions/snipe-fields-validation.js'
=>
'
0557f2e3
'
,
'rsrc/js/phui/behavior-phui-dropdown-menu.js'
=>
'5cf0501a'
,
'rsrc/js/phui/behavior-phui-file-upload.js'
=>
'e150bd50'
,
'rsrc/js/phui/behavior-phui-selectable-list.js'
=>
'b26a41e4'
,
...
...
@@ -907,7 +907,7 @@ return array(
'releeph-request-differential-create-dialog'
=>
'0ac1ea31'
,
'releeph-request-typeahead-css'
=>
'bce37359'
,
'setup-issue-css'
=>
'5eed85b2'
,
'snipe-fields-validation-js'
=>
'
efef003f
'
,
'snipe-fields-validation-js'
=>
'
0557f2e3
'
,
'sprite-login-css'
=>
'18b368a6'
,
'sprite-tokens-css'
=>
'f1896dc5'
,
'syntax-default-css'
=>
'055fc231'
,
...
...
webroot/rsrc/js/extensions/snipe-fields-validation.js
View file @
e3216d6e
...
...
@@ -334,7 +334,15 @@ function purchasing_validations() {
assets_list
[
num_asset_forms
.
value
][
key
].
style
.
display
=
"
block
"
;
}
}
num_asset_forms
.
value
++
;
// Auto fill currency and ship to fields based on the first item
document
.
getElementsByName
(
"
std:maniphest:purchasing:currency
"
+
num_asset_forms
.
value
)[
0
].
value
=
document
.
getElementsByName
(
"
std:maniphest:purchasing:currency1
"
)[
0
].
value
;
}
else
{
add_new_asset_btn
.
innerText
=
"
Items per ticket exceeded
"
;
add_new_asset_btn
.
classList
.
add
(
"
disabled
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment