Custom error message cut

Custom error message cut

Benoit87Benoit87 Posts: 8Questions: 3Answers: 1
edited November 2020 in Free community support

Hello,

I have upgraded editor 1.9.2 to 1.9.5 and the following change hide (not all) my custom error message

Release note 1.9.4 :
Reinstate form error message to lightbox footer, but with ellipsis and a title attribute in case of overflow

How can i fix it please ?

This question has an accepted answers - jump to answer

Answers

  • Benoit87Benoit87 Posts: 8Questions: 3Answers: 1
    edited November 2020

    Before 1.9.4 version

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Odd. Could you update this example to demonstrate the problem, please? I'm struggling to reproduce it.

    Colin

  • Benoit87Benoit87 Posts: 8Questions: 3Answers: 1
    edited November 2020

    Hello,

    Thanks for your help but it will be difficult for me to show you with this tool.

    In php if condition is not true i do that :

    return 'La période de modification de cette feuille a expirée';

    Process is stopped and this message is set to footer

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Process is stopped and this message is set to footer

    How are you setting it in the footer? Could you post the code, please, that's doing it.

    Colin

  • Benoit87Benoit87 Posts: 8Questions: 3Answers: 1

    Goal: replace this message: A system error has occurred (more informations)

    Php code for example:

    ->validator(function ($editor, $action, $data) use ($id){
        if ($action !== Editor::ACTION_READ){
                if($fin < $jour){
                    return 'La période de modification de cette feuille a expirée';
                }
        }
    })
    ->where('id_u', intval(data)
    ->where('id_p', intval(data))
    ->process($_POST)
    ->json()
    

    JS:
    buttons: [
    {
    extend: 'remove',text: 'Supprimer une ligne',
    formTitle : "Suppression d'une ligne",
    formMessage : "Êtes-vous sûr de vouloir supprimer cette ligne ?",
    formButtons:'Supprimer',
    editor: editor
    },

  • Benoit87Benoit87 Posts: 8Questions: 3Answers: 1
    edited November 2020 Answer ✓

    i solved the issue, it was our css that use also title like datatable css...

    Thanks you for your help.

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    Thanks for the update - good to hear you've got it working.

    Allan

This discussion has been closed.