Description: MOD table formula has Expression is faulty when opened in LO. Steps to Reproduce: 1. Create a new docx in Word. 2. Insert a Table. 3. Insert MOD() formula to some of the cells. 4. Save and open it in LO. Actual Results: The cells which had and MOD formula now have ** Expression is faulty ** instead of what was in them in Word. Expected Results: All the cells should have the same data in them. Reproducible: Always User Profile Reset: No Additional Info: LibreOffice details: Version: 6.3.0.0.alpha0+ Build ID: 17dd2662ccfa9d04efbea74e5d7548db5b2126d4 CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; Locale: hu-HU (hu_HU); UI-Language: en-US Calc: threaded
Created attachment 149185 [details] Screenshot of the original document side by side in Word and Writer.
Created attachment 149186 [details] Document with MOD table formulas.
Formulas: debug:7354:7354: =MOD(18;4) debug:7354:7354: =MOD(B1;A1)
Writer doesn't currently support MOD. See calc.cxx:97.
Still reproducible in Version: 7.2.0.0.alpha0+ Build ID: 84af20ef3ea72190784e9e7be820684c2558ba8c CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Dear NISZ LibreOffice Team, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Still reproducible in: Version: 25.2.3.2 (X86_64) / LibreOffice Community Build ID: 520(Build:2) CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: en-GB (en_GB.UTF-8); UI: en-US Ubuntu package version: 4:25.2.3-0ubuntu0.22.04.1~lo1 Calc: threaded
*** Bug 166787 has been marked as a duplicate of this bug. ***
The ODF TC has briefly discussed whether OpenFormula can be used, see https://issues.oasis-open.org/browse/OFFICE-4135
My take on it: https://gerrit.libreoffice.org/c/core/+/186325
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/389325166a3357d7a4e557dc4c223fe0bb7aeadd tdf#123384: Add support for MOD formula It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
source/text/swriter/02/14020000.xhp would be welcome.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-25-8": https://git.libreoffice.org/core/commit/e0331f8f3698c95120d4db571b00e03a4cbd8fd6 tdf#123384: Add support for MOD formula It will be available in 25.8.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Olivier Hallot committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/c8e6db62fb887e420f55a5d0c0d85b98d320682c tdf#123384, tdf#166948 Writer MOD function Help
(In reply to Xisco Faulí from comment #11) > My take on it: https://gerrit.libreoffice.org/c/core/+/186325 why isn't it an "easyHack" ?
(In reply to fpy from comment #16) > (In reply to Xisco Faulí from comment #11) > > My take on it: https://gerrit.libreoffice.org/c/core/+/186325 > > > why isn't it an "easyHack" ? what do you mean ?
(In reply to Xisco Faulí from comment #17) https://wiki.documentfoundation.org/Development/EasyHacks
yep, I know what an easyHack is, but I don't understand your question after the issue got fixed...
(In reply to Xisco Faulí from comment #19) > after the issue got fixed... was marked (and unmarked) before : https://bugs.documentfoundation.org/show_activity.cgi?id=123384
(In reply to fpy from comment #20) > (In reply to Xisco Faulí from comment #19) > > after the issue got fixed... > > was marked (and unmarked) before : > https://bugs.documentfoundation.org/show_activity.cgi?id=123384 oh, I see... I removed it because the code pointer was missing. In order for an issue to be an easyhack, a code pointer is needed, otherwise it's not a real easyhack
(In reply to Xisco Faulí from comment #21) ok, so for later reference, added related bug tdf#123381 which is exactly the same pattern.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-25-2": https://git.libreoffice.org/core/commit/b9a71a5f04fe9339f9d0d23a594055ebb473b4c8 tdf#123384: Add support for MOD formula It will be available in 25.2.5. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.