issue on related artist

urban
urban
Offline
0
in the form for the artist bio, if I select one or more related artists everything is ok, but if you want to remove the link as I do?
Responses (9)
  • Accepted Answer

    urban
    urban
    Offline
    Tuesday, May 11 2010, 08:01 PM - #Permalink
    0
    anyone on this issue? please help me!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 12 2010, 05:40 PM - #Permalink
    0
    ups.. I think you found a bug!!

    try adding this on file /administrator/components/com_muscol/models/artist.php line 59


    $this->_artists_data[] = new stdClass();
    The reply is currently minimized Show
  • Accepted Answer

    urban
    urban
    Offline
    Thursday, May 13 2010, 12:00 AM - #Permalink
    0
    don't work...
    work if i select a related artists and work if i change this related... but if you want to remove any association can not.
    should add a blank space in artists list ... or something similar..
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 13 2010, 11:34 AM - #Permalink
    0
    Maybe this is the same bug. Some artists which are related to a deleted artist, show all artists as related instead :(
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 13 2010, 03:00 PM - #Permalink
    0
    well the code does exactly that! it adds a blank space!! (at the BOTTOM of the list)

    check it out!! :lol:
    The reply is currently minimized Show
  • Accepted Answer

    urban
    urban
    Offline
    Thursday, May 13 2010, 04:20 PM - #Permalink
    0
    this is the code in my file, but i dont see a blank space in the list

    function getArtistsData()
    {
    // Lets load the data if it doesn't already exist
    if (empty( $this->_artists_data )){
    $query = ' SELECT id,artist_name FROM #__muscol_artists '.
    ' WHERE id != '.$this->_id.
    ' ORDER BY letter,class_name';
    $this->_artists_data[] = new stdClass();
    $this->_db->setQuery( $query );

    $this->_artists_data = $this->_db->loadObjectList();
    }

    return $this->_artists_data;

    }
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 13 2010, 04:43 PM - #Permalink
    0
    the code its not on the correct line. maybe I misspelled the line

    you have to put the "$this->_artists_data[] = new stdClass(); "

    just AFTER "$this->_artists_data = $this->_db->loadObjectList(); "
    The reply is currently minimized Show
  • Accepted Answer

    urban
    urban
    Offline
    Thursday, May 13 2010, 06:09 PM - #Permalink
    0
    perfect!
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 13 2010, 06:10 PM - #Permalink
    0
    awesome :)
    The reply is currently minimized Show
Your Reply