? ? Failure

User tests: Successful: Unsuccessful:

avatar akritianand
akritianand
14 Sep 2017

Pull Request for Issue #17932 .

Summary of Changes

Originally: Duplicate created module (2), module (3)... and Save & Copy created module (copy)
Now: Duplicate and Save & Copy both create module (2), module (3)...
However titles created by both these buttons are independent, i.e., duplicating module will give module (1) and Save & Copy of module will also give module (1) (irrespective of whether it exists or not).

Testing Instructions

In Module Manager select/check a module.

  • Click button Duplicate.
    
  • The title of copy has a postfix (2).
    
  • Now open a module by clicking the title link.
    
  • Click button Save as Copy.
    
  • The title of copy gets a postfix (copy).
    

Expected result

Uniform module title.

Actual result

As mentioned above

Documentation Changes Required

None.

avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2017
Category Administration com_modules JavaScript
avatar akritianand akritianand - open - 14 Sep 2017
avatar akritianand akritianand - change - 14 Sep 2017
Status New Pending
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 14 Sep 2017 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Sep 2017

I have tested this item ? unsuccessfully on af24b73

  • by click on Button "Duplicate" got 2nd Module Web Links (2) (works)
  • open Module Web Links and click Save as Copy got 3rd Module Web Links (2) (wrong):

bildschirmfoto 2017-09-14 um 08 09 28


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17951.
avatar akritianand
akritianand - comment - 14 Sep 2017

I have a doubt in syntax.
I am trying to execute this:
$var = $data['title'];
$db = $this->getDbo();
$query = $db->getQuery(true);
$query
->select('title')
->from('#__modules')
->where('title = '. $var);
$db->setQuery($query);
try
{
$db->execute();
while($row = $db->loadRowList()) {
//some code
}
}
catch (RuntimeException $e)
{
$this->setError($e->getMessage());
return false;
}
Now $var here is modulename (1). But it shows this error when excecuting: Save failed with the following error: SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION joomla.modulename (1) does not exist.
Can you tell me where I am wrong?
Thank you.

avatar akritianand
akritianand - comment - 14 Sep 2017

In fact it is treating modulename (1) as a function. So if I remove (1) I get a different error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'modulename' in 'where clause'. :/

avatar mbabker
mbabker - comment - 14 Sep 2017
  1. Commented code shouldn't be committed, that's what version control is for ?
  2. Are the calendar JavaScript changes related to this?
avatar akritianand
akritianand - comment - 14 Sep 2017

@mbabker 1. I didn't realise that I had left them as it is.
2. They are part of previous pull request I had submitted.

avatar brianteeman
brianteeman - comment - 16 Sep 2017

@akritianand you need to use a separate branch for each pull request so that a PR only contains the changed files for this PR

avatar joomla-cms-bot joomla-cms-bot - change - 16 Sep 2017
Category Administration com_modules JavaScript Administration com_admin com_contact com_finder com_menus com_modules com_plugins com_users Language & Strings Templates (admin) Repository Front End com_content
avatar akritianand akritianand - change - 16 Sep 2017
Labels Added: ?
avatar akritianand
akritianand - comment - 16 Sep 2017

@brianteeman Oh sorry. I reverted all my changes. Now my pull request only contains the changes for this PR.

avatar akritianand akritianand - change - 16 Sep 2017
Labels Added: ?
avatar brianteeman
brianteeman - comment - 16 Sep 2017

@akritianand as you can see that didnt work as it is now showing 195 changed files

avatar akritianand
akritianand - comment - 16 Sep 2017

@brianteeman I updated my branch with the latest joomla repository. So that there are no conflicts.

avatar brianteeman
brianteeman - comment - 16 Sep 2017

screenshot_20170916-222920

avatar joomla-cms-bot joomla-cms-bot - change - 6 May 2018
Closed_Date 2018-05-06 17:31:10 2018-05-06 17:31:11
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 6 May 2018
avatar Quy Quy - change - 6 May 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-05-06 17:31:10
Closed_By Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 6 May 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/17951

avatar Quy
Quy - comment - 6 May 2018

This is no longer an issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17951.

Add a Comment

Login with GitHub to post a comment