Skip to content

[Bug]: displaying readonly field in edit mode - page count #5542

@Jimmi08

Description

@Jimmi08

What e107 version are you using?

Latest Github version (just updated)

Bug description

In this commit, you add displaying page count in reading mode:

93eeaf6

It looks like this:

Image

it is set this way:
'chapter_page_count' => array('title'=> 'CUSLAN_87', 'type' => 'number', 'data'=>false, 'width' => '5%', 'readonly'=>TRUE, 'thclass'=>'center', 'class'=>'page-count center'),

Notice: 'data'=>false, 'readonly'=>TRUE,

But in edit mode you are able to edit it. I know it is not saved but there is no way how to explain this field to users.

Image

How to reproduce

  1. go to chapters
  2. edit chapter

Expected behavior

With the combination of 'data'=>false, and 'readonly'=>TRUE, (both) not display this field in edit mode

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA problem that should not be happening

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions