mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 11:08:28 +00:00
Fix #2553
This commit is contained in:
@@ -107,9 +107,6 @@ class AccountValidator
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// whatever happens, source cannot equal destination:
|
|
||||||
|
|
||||||
|
|
||||||
switch ($this->transactionType) {
|
switch ($this->transactionType) {
|
||||||
default:
|
default:
|
||||||
$this->destError = sprintf('AccountValidator::validateDestination cannot handle "%s", so it will always return false.', $this->transactionType);
|
$this->destError = sprintf('AccountValidator::validateDestination cannot handle "%s", so it will always return false.', $this->transactionType);
|
||||||
|
2
public/v1/js/app.js
vendored
2
public/v1/js/app.js
vendored
File diff suppressed because one or more lines are too long
@@ -131,20 +131,20 @@
|
|||||||
}
|
}
|
||||||
this.inputDisabled = false;
|
this.inputDisabled = false;
|
||||||
if (this.transactionType.toString() !== '' && this.index > 0) {
|
if (this.transactionType.toString() !== '' && this.index > 0) {
|
||||||
if (this.transactionType.toString() === 'Transfer') {
|
if (this.transactionType.toString().toLowerCase() === 'transfer') {
|
||||||
this.inputDisabled = true;
|
this.inputDisabled = true;
|
||||||
// todo: needs to copy value from very first input
|
// todo: needs to copy value from very first input
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.transactionType.toString() === 'Withdrawal' && this.inputName.substr(0, 6).toLowerCase() === 'source') {
|
if (this.transactionType.toString().toLowerCase() === 'withdrawal' && this.inputName.substr(0, 6).toLowerCase() === 'source') {
|
||||||
// todo also clear value?
|
// todo also clear value?
|
||||||
this.inputDisabled = true;
|
this.inputDisabled = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.transactionType.toString() === 'Deposit' && this.inputName.substr(0, 11).toLowerCase() === 'destination') {
|
if (this.transactionType.toString().toLowerCase() === 'deposit' && this.inputName.substr(0, 11).toLowerCase() === 'destination') {
|
||||||
// todo also clear value?
|
// todo also clear value?
|
||||||
this.inputDisabled = true;
|
this.inputDisabled = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user