Skip to content

Commit

Permalink
tabletennis
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Apr 17, 2023
1 parent 468a317 commit 346218d
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Extensions ?

Änderungen
---------------------
* 17-04-2023: **4.16.00** Neue Felder für Einzelsportart Tischtennis
* 16-04-2023: **4.15.00** Neue Felder für Einzelsportart Tischtennis
* 10-04-2023: **4.14.00** Neue Felder für Einzelsportart
* 03-04-2023: **4.13.00** Anpassungen Joomla 4
Expand Down
6 changes: 3 additions & 3 deletions admin/libraries/sportsmanagement/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1022,14 +1022,14 @@ public function save($data)
$this->jsmquery->where('spi.person_id =' . $data['id']);
$this->jsmquery->where('spi.season_id =' . $value);
$this->jsmdb->setQuery($this->jsmquery);
$res = $this->jsmdb->loadObject();
$res = $this->jsmdb->loadObject();
$delete_season[] = $value;

if (!$res)
{
$this->jsmquery->clear();
$columns = array('person_id', 'season_id', 'modified', 'modified_by');
$values = array($data['id'], $value, $this->jsmdb->Quote('' . $data['modified'] . ''), $data['modified_by']);
$columns = array('person_id', 'season_id','club_id', 'modified', 'modified_by');
$values = array($data['id'], $value,$data['club_id'], $this->jsmdb->Quote('' . $data['modified'] . ''), $data['modified_by']);
$this->jsmquery
->insert($this->jsmdb->quoteName('#__sportsmanagement_season_person_id'))
->columns($this->jsmdb->quoteName($columns))
Expand Down
24 changes: 24 additions & 0 deletions admin/models/forms/player.xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ landesverband

</fieldset>

<!-- reiter 2 -->
<fields name="request">
<fieldset name="request"
label="COM_SPORTSMANAGEMENT_TABS_REQUEST"
Expand Down Expand Up @@ -417,6 +418,7 @@ description="COM_SPORTSMANAGEMENT_ADMIN_PERSON_2_DESC"

</fields>

<!-- reiter 3 -->
<fieldset name="description"
label="COM_SPORTSMANAGEMENT_TABS_DESCRIPTION"
description="COM_SPORTSMANAGEMENT_TABS_DESCRIPTION_DESC">
Expand All @@ -429,6 +431,7 @@ description="COM_SPORTSMANAGEMENT_ADMIN_PERSON_2_DESC"
filter="JComponentHelper::filterText"/>
</fieldset>

<!-- reiter 4 saisons -->
<fieldset name="seasons"
label="COM_SPORTSMANAGEMENT_TABS_SEASON"
description="COM_SPORTSMANAGEMENT_TABS_SEASON_DESC">
Expand All @@ -443,8 +446,25 @@ description="COM_SPORTSMANAGEMENT_ADMIN_PERSON_2_DESC"
class="inputbox"/>


<field
name="club_id"
type="clublist"
class="inputbox"
default="0"
size="1"
required="true"
label="COM_SPORTSMANAGEMENT_ADMIN_TEAM_CLUB"
description="COM_SPORTSMANAGEMENT_ADMIN_TEAM_CLUB_DESC" >

<option
value="">
COM_SPORTSMANAGEMENT_GLOBAL_SELECT_CLUB</option>
</field>


</fieldset>

<!-- reiter 5 zugeordnetes team in der saison -->
<fieldset name="seasonsteams"
label="COM_SPORTSMANAGEMENT_TABS_SEASON_TEAM_PERSON"
description="COM_SPORTSMANAGEMENT_TABS_SEASON_TEAM_PERSON_DESC">
Expand All @@ -459,6 +479,10 @@ description="COM_SPORTSMANAGEMENT_ADMIN_PERSON_2_DESC"
class=""/>






</fieldset>


Expand Down
2 changes: 2 additions & 0 deletions admin/sql/install.mysql.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,8 @@ CREATE TABLE IF NOT EXISTS `#__sportsmanagement_season_person_id` (
`published` TINYINT(1) NOT NULL DEFAULT '1' ,
`cr_picture` varchar(255) DEFAULT NULL,
`position_id` INT( 11 ) NOT NULL DEFAULT '0',
`club_id` INT(11) NOT NULL DEFAULT '0' ,

PRIMARY KEY (`id`) ,
UNIQUE KEY `combi` (`person_id`,`season_id`,`team_id`,`persontype`) ,
KEY `team_id` (`team_id`),
Expand Down
9 changes: 9 additions & 0 deletions admin/sql/updates/mysql/4.16.00.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ALTER TABLE `#__sportsmanagement_season_person_id` ADD `club_id` INT(11) NOT NULL DEFAULT '0' ;








2 changes: 1 addition & 1 deletion list.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<extensionset name="sportsmanagement" description="JSM">
<extension name="sportsmanagement" element="com_sportsmanagement" type="component" version="4.15.00" detailsurl="https://raw.githubusercontent.com/diddipoeler/sportsmanagement/master/sportsmanagement-update.xml"/>
<extension name="sportsmanagement" element="com_sportsmanagement" type="component" version="4.16.00" detailsurl="https://raw.githubusercontent.com/diddipoeler/sportsmanagement/master/sportsmanagement-update.xml"/>
</extensionset>
4 changes: 2 additions & 2 deletions script.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ class com_sportsmanagementInstallerScript
* The release value would ideally be extracted from <version> in the manifest file,
* but at preflight, the manifest file exists only in the uploaded temp folder.
*/
private $release = '4.15.00';
private $old_release = '4.14.00';
private $release = '4.16.00';
private $old_release = '4.15.00';

// $language_update = '';

Expand Down
19 changes: 18 additions & 1 deletion sportsmanagement-update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,24 @@
<targetplatform name="joomla" version=".*" />
</update>


<update>
<name>Sports-Management</name>
<description>Sports-Management Component</description>
<element>com_sportsmanagement</element>
<type>component</type>
<version>4.16.00</version>
<infourl title="Sports-Management URL">http://fussballineuropa.de</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/diddipoeler/sportsmanagement/archive/master.zip</downloadurl>
</downloads>
<tags>
<tag>some-tag</tag>
</tags>
<maintainer>Sports-Management Inc.</maintainer>
<maintainerurl>http://fussballineuropa.de</maintainerurl>
<section>some-section</section>
<targetplatform name="joomla" version=".*" />
</update>



Expand Down
2 changes: 1 addition & 1 deletion sportsmanagement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<copyright>Copyright Info</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<!-- The version string is recorded in the components table -->
<version>4.15.00</version>
<version>4.16.00</version>
<!-- The description is optional and defaults to the name -->
<description>COM_SPORTSMANAGEMENT_DESCRIPTION</description>

Expand Down
4 changes: 2 additions & 2 deletions update-server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<description>Sports-Management Component</description>
<element>com_sportsmanagement</element>
<type>component</type>
<version>4.15.00</version>
<version>4.16.00</version>
<infourl title="Sports-Management URL">http://fussballineuropa.de</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/diddipoeler/sportsmanagement/archive/4.15.00.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/diddipoeler/sportsmanagement/archive/4.16.00.zip</downloadurl>
</downloads>
<tags>
<tag>some-tag</tag>
Expand Down

0 comments on commit 346218d

Please sign in to comment.