?
avatar nvyush
nvyush
1 Jun 2017

Steps to reproduce the issue

Code review of the file /components/com_content/views/form/view.html.php, lines 49 — 77.

Expected result

if (!empty($this->item->id))

Actual result

if (!empty($this->item) && isset($this->item->id))

System information (as much as possible)

Joomla 3.7.2

Additional comments

The check !empty($this->item) is unneeded or must be above. E.g., this check is absent at the line 53.
I think, it is possible to join the statements of if conditions at the lines 72 and 77.

avatar nvyush nvyush - open - 1 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Jun 2017
Category Feature Request SQL
avatar Bakual
Bakual - comment - 1 Jun 2017

Since you already propose some code, can you please create a Pull Request so it can be tested?
https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

avatar nvyush
nvyush - comment - 1 Jun 2017

Bakual
I have some trouble with this now.

avatar Bakual
Bakual - comment - 1 Jun 2017

I can try to help if you tell me what the trouble is 😄

avatar nvyush
nvyush - comment - 1 Jun 2017

I use online github. My fork is inconsistent. I can't create second fork and I don't want to drop my fork.

avatar Bakual
Bakual - comment - 1 Jun 2017

If you edit the file on this repo instead of your fork, then GitHub will automatically create a new branch in your fork based on this repo here.

avatar nvyush nvyush - change - 1 Jun 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-06-01 08:27:53
Closed_By nvyush
avatar nvyush nvyush - close - 1 Jun 2017
avatar nvyush
nvyush - comment - 1 Jun 2017

Closed as we have PR #16412.
Thanks, Bakual.

Add a Comment

Login with GitHub to post a comment