﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,difficulty
3786,Profile plugin mis-handles class replacement in views/default/profile/owner_block.php,beck24,,"owner_block.php declares two classes for the action links in the menu below the profile icon.  These links are pulled from menu:user_hover.


{{{
if (elgg_is_logged_in() && $actions) {
  $profile_actions = '<ul class=""elgg-menu profile-action-menu mvm"">';
  foreach ($actions as $action) {
    $profile_actions .= '<li>' . $action->getContent(array('class' => 'elgg-button elgg-button-action')) . '</li>';
  }
  $profile_actions .= '</ul>';
}
}}}


If a dev has defined a class for one of these links the output is: 

{{{
class=""0""
}}}

which breaks both the default style and any functionality/style the dev intended.

This can be seen most readily in my Extendafriend 1.8.x plugin.  Install it and remove the replacement /views/default/profile/owner_block.php

I believe the intent was to overwrite any classes, so the output no matter what should be:


{{{
class=""elgg-button elgg-button-action""
}}}

Ideally I think it should combine the classes, so in my case the output would be:


{{{
class=""elgg-button elgg-button-action elgg-lightbox""
}}}

That way any jquery functionality will be retained, and any style conflicts can be rectified with a css multiclass selector.",Defect,closed,normal,Elgg 1.8.1b,Core,1.8 Beta,minor,fixed,Profile Plugin,brett@…,
