Coder Social home page Coder Social logo

Comments (2)

intoeetive avatar intoeetive commented on May 27, 2024 1

The IP address is kinda special because it is the property on the ChannelEntry model, it has validation, but it's not on the page - so there is no place where the error could be shown.

Since this seems to currently be only one of this kind, I've added a "special case" to treat it.

The error message could have been better, but that's what comes from validation service (and I think it's generic on purpose)

image

from expressionengine.

robinsowell avatar robinsowell commented on May 27, 2024

And in case it ever comes up- you. can see the validation errors for a form submit hacking ExpressionEngine/Model/Channel/ChannelEntry.php:


            // restore our package and view paths
            ee()->load->remove_package_path($info->getPath());
        }
		
		var_dump($result->getAllErrors()); die;

        return $result;
    }

    /**
     * Validate entry count for this channel against channel's
     * max_entries setting
     */
    public function validateMaxEntries($key, $value, $params, $rule)

from expressionengine.

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.