Code Monkey home page Code Monkey logo

Comments (5)

elinw avatar elinw commented on August 9, 2024

Wow I think this is happening for me as well when trying to save a blanked out article.

...

Actually I think this is because $updateNulls is set to false in the content table

Also #1077 although that has to do with a different table.

from joomla-platform.

mahagr avatar mahagr commented on August 9, 2024

Actually this is feature (or issue) in bind() function itself, which prevents updating values that do not exist.

In PHP isset() returns false either if the value doesn't exist or is null. It's very useful for example when you may have optional input fields, which do not always come from GET or POST (are set but not defined). Changing this undocumented feature could potentially slightly break many extensions (and core) which rely on this feature.

If table needs some other behavior, I'd rather override the function with a version that works better for that table. Forcing bind() change to all tables may have catastrophic consequences on many extensions as it's breaking the current API.

from joomla-platform.

elinw avatar elinw commented on August 9, 2024

Okay I found the problem in JTableContent which is that it was using !empty rather than isset for a condition and that was leading to other consequences

from joomla-platform.

dongilbert avatar dongilbert commented on August 9, 2024

So, has this been fixed in the CMS or a previous iteration of the Platform then?

from joomla-platform.

eddieajau avatar eddieajau commented on August 9, 2024

I'm sorry but we aren't accepting issues for this repository any more. Please see http://developer.joomla.org/cms/report-an-issue.html for how to report and issue for the CMS Platform.

from joomla-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.