Drupal won't update a textfield from a integer value with no decimal to the same value with a .0 decimalJquery JStree plugin form text field conflictDrupal form autocompleted with data from a database by ahah, how to do it?How to display and hide Drupal 7 fields, based on value of a specific fieldHow to remove /drupal from URL in Drupal 7 when installation is in the associated sub-directorySafety in using ASP.net MVC to handle POST from DrupalProgrammatically set numeric fivestar value in Drupal 7Drupal Form API : display the same form again with AJAX, but with different values, on submitJavaFX - Update a text field through observer patternUpdating DrupalSwift 4 - Enable/Disable Two UI Buttons Based On Different TextField Inputs
Would an object shot from earth fall into the sun?
Can I bring this power bank on board the aircraft?
Can Familiars read and use spell scrolls?
Prove that the 23 people have the same weight.
Can the President of the US limit First Amendment rights?
Bothered by watching coworkers slacking off
SOQL injection vulnerability issue
How do my husband and I get over our fear of having another difficult baby?
How to find places to store/land a private airplane?
How do we decide/plan an SLA for an NP-hard optimization process running in production?
How to identify whether a publisher is genuine or not?
How to level a picture frame hung on a single nail?
What is the meaning of first flight and introduction in aircraft production?
Did Tolkien ever write about a Heaven or Hell for Men?
What is the use of command?
Short story about a potato hotel that makes its guests into potatoes throughout the night
What's the global, general word that stands for "center tone of a song"?
Looking for circuit board material that can be dissolved
Why do Russians sometimes spell "жирный" (fatty) as "жырный"?
Is the "spacetime" the same thing as the mathematical 4th dimension?
Does the US Armed Forces refuse to recruit anyone with an IQ less than 83?
Why has Speaker Pelosi been so hesitant to impeach President Trump?
Isn't the detector always measuring, and thus always collapsing the state?
Job interview by video at home and privacy concerns
Drupal won't update a textfield from a integer value with no decimal to the same value with a .0 decimal
Jquery JStree plugin form text field conflictDrupal form autocompleted with data from a database by ahah, how to do it?How to display and hide Drupal 7 fields, based on value of a specific fieldHow to remove /drupal from URL in Drupal 7 when installation is in the associated sub-directorySafety in using ASP.net MVC to handle POST from DrupalProgrammatically set numeric fivestar value in Drupal 7Drupal Form API : display the same form again with AJAX, but with different values, on submitJavaFX - Update a text field through observer patternUpdating DrupalSwift 4 - Enable/Disable Two UI Buttons Based On Different TextField Inputs
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I am facing a strange situation in Drupal 8 where the value of a text field won't be updated in some situations.
Indeed, if the textfield's value is an integer, for instance 19 and I try to update it for a decimal with a .0 (for instance 19.0) then it won't be updated. (My guess is that Drupal takes those 2 values as the same, and so doesn't update the database). The same problem happen if I try to update from 19.0 to 19.
However if I update the value from 19 or 19.0 to any other value (let's say 19.1) and then go back to 19.0 or 19, then it will be updated since the numerical value has been different between the two values I am trying to update.
What's strange is that the field I am using is a textfield, and so the string value "19" isn't supposed to equals "19.0". I would understand why a numerical field was not updated (since the value is numerically the same) but this shouldn't be the case in a textfield.
My question is, has anybody ever faced a situation like that in Drupal and is there a possible workaround ? The difference between those two values is important in my situation (even if it is numerically the same)...
input drupal textfield drupal-8 drupal-nodes
add a comment
|
I am facing a strange situation in Drupal 8 where the value of a text field won't be updated in some situations.
Indeed, if the textfield's value is an integer, for instance 19 and I try to update it for a decimal with a .0 (for instance 19.0) then it won't be updated. (My guess is that Drupal takes those 2 values as the same, and so doesn't update the database). The same problem happen if I try to update from 19.0 to 19.
However if I update the value from 19 or 19.0 to any other value (let's say 19.1) and then go back to 19.0 or 19, then it will be updated since the numerical value has been different between the two values I am trying to update.
What's strange is that the field I am using is a textfield, and so the string value "19" isn't supposed to equals "19.0". I would understand why a numerical field was not updated (since the value is numerically the same) but this shouldn't be the case in a textfield.
My question is, has anybody ever faced a situation like that in Drupal and is there a possible workaround ? The difference between those two values is important in my situation (even if it is numerically the same)...
input drupal textfield drupal-8 drupal-nodes
add a comment
|
I am facing a strange situation in Drupal 8 where the value of a text field won't be updated in some situations.
Indeed, if the textfield's value is an integer, for instance 19 and I try to update it for a decimal with a .0 (for instance 19.0) then it won't be updated. (My guess is that Drupal takes those 2 values as the same, and so doesn't update the database). The same problem happen if I try to update from 19.0 to 19.
However if I update the value from 19 or 19.0 to any other value (let's say 19.1) and then go back to 19.0 or 19, then it will be updated since the numerical value has been different between the two values I am trying to update.
What's strange is that the field I am using is a textfield, and so the string value "19" isn't supposed to equals "19.0". I would understand why a numerical field was not updated (since the value is numerically the same) but this shouldn't be the case in a textfield.
My question is, has anybody ever faced a situation like that in Drupal and is there a possible workaround ? The difference between those two values is important in my situation (even if it is numerically the same)...
input drupal textfield drupal-8 drupal-nodes
I am facing a strange situation in Drupal 8 where the value of a text field won't be updated in some situations.
Indeed, if the textfield's value is an integer, for instance 19 and I try to update it for a decimal with a .0 (for instance 19.0) then it won't be updated. (My guess is that Drupal takes those 2 values as the same, and so doesn't update the database). The same problem happen if I try to update from 19.0 to 19.
However if I update the value from 19 or 19.0 to any other value (let's say 19.1) and then go back to 19.0 or 19, then it will be updated since the numerical value has been different between the two values I am trying to update.
What's strange is that the field I am using is a textfield, and so the string value "19" isn't supposed to equals "19.0". I would understand why a numerical field was not updated (since the value is numerically the same) but this shouldn't be the case in a textfield.
My question is, has anybody ever faced a situation like that in Drupal and is there a possible workaround ? The difference between those two values is important in my situation (even if it is numerically the same)...
input drupal textfield drupal-8 drupal-nodes
input drupal textfield drupal-8 drupal-nodes
asked Mar 28 at 20:20
obrassardobrassard
452 silver badges9 bronze badges
452 silver badges9 bronze badges
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406234%2fdrupal-wont-update-a-textfield-from-a-integer-value-with-no-decimal-to-the-same%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406234%2fdrupal-wont-update-a-textfield-from-a-integer-value-with-no-decimal-to-the-same%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown