J3 Issue ?
avatar kat0d
kat0d
12 May 2019

Steps to reproduce the issue

  • Add user custom field
  • try to hide this field from user edit form, and just to show in user profile
    or
  • assign read-only attribute
    or
  • disable in the edit form

Expected result

disable field in the user edit form

Actual result

#nothing works!!!
where is this futures ?!!!
image
only that i see is
image
and if set this option to "NO" it's disabled field not only in the profile edit form, but in profile page too!!

System information (as much as possible)

Joomla 3.9.6
php 7.2

Additional comments

avatar kat0d kat0d - open - 12 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 May 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 13 May 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 May 2019

@kat0d thanks for your Report. Is it the same you asked at #24754 (comment)?

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 May 2019
Status New Information Required
avatar kat0d
kat0d - comment - 13 May 2019

@franz-wohlkoenig basically yes. i just can't find out, is it i'm missing something, or it's just really bugs. because custom fields exists quite long time in Joomla. and this is not full list of their bugs.

avatar HLeithner HLeithner - change - 13 May 2019
The description was changed
avatar HLeithner HLeithner - edited - 13 May 2019
avatar Quy
Quy - comment - 13 May 2019

So this is the same issue as #24754?

avatar kat0d
kat0d - comment - 13 May 2019

@Quy no, we are pursuing the same goal, as I understand it. But these are different bugs. we use different options.
and there is one more
if you not allow edit custom field values in field permissions
image
if this field is present in user profile edit form(which i can't disable with Joomla options), so you get an error, when you save the form
j3bug

avatar kat0d
kat0d - comment - 13 May 2019

my goal:

  • add repeatable field, so admin can add fields, and user can see this fields in user profile page, but can't see it in user edit form, or at least can't edit it. and this simple task is currently impossible with standard joomla options.
avatar kat0d
kat0d - comment - 13 May 2019

ok, so here is a quick, if someone need this future now

  • disable "Edit Custom Field Value" in field "Permissions" tab
    create template rewrite:
    JOOMLA-SITE\components\com_users\views\profile\tmpl\edit.php
    now it's in your template
    JOOMLA-SITE\templates\JOOMLA-TEMPLATE\html\com_users\profile\edit.php

find:

<?php if ($field->hidden) : ?>

in my case it's line 68
add before this line:

<?php if ($field->disabled){ continue; } ?>

you're done, BUT, if you have only one field in fieldset group, you will have an empty fieldset in edit form, so hide it with css, or assign field to other fieldset group with more than one field.

i can't believe this. custom fields starts from J3.7, and no one don't use it like this. or am i an idiot:)

and what it for ??
image
if field is hidden, for what reason to show field input ??

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 May 2019
avatar alikon alikon - change - 3 Feb 2020
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2020-02-03 19:22:29
Closed_By alikon
avatar alikon
alikon - comment - 3 Feb 2020

Closing this due to not receiving required information to determine if this is a bug or not. If you feel this still needs review, please open a new tracker entry with as much information as possible to ensure it can be reviewed properly

avatar alikon alikon - close - 3 Feb 2020

Add a Comment

Login with GitHub to post a comment