Skip to content

Commit

Permalink
tabletennis
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Apr 10, 2023
1 parent 2d9f843 commit 05ef63e
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 8 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
---------------------
* 10-04-2023: **4.14.00** Neue Felder für Einzelsportart
* 03-04-2023: **4.13.00** Anpassungen Joomla 4
* 27-03-2023: **4.12.00** Anpassungen Joomla 4
* 07-01-2023: **4.11.00** Neue Felder flag_maps
Expand Down
46 changes: 46 additions & 0 deletions admin/models/forms/teamplayer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,52 @@ description="COM_SPORTSMANAGEMENT_ADMIN_PERSON_CONTRACT_TO_DESC"
class="inputbox"
format="%d-%m-%Y"/>



<field
name="person_art"
type="list"
class="inputbox"
default="1"
size="1"
label="COM_SPORTSMANAGEMENT_GLOBAL_PERSON_ART"
description="COM_SPORTSMANAGEMENT_GLOBAL_PERSON_ART_DESC">
<option value="1">COM_SPORTSMANAGEMENT_PERSON_SINGLE</option>
<option value="2">COM_SPORTSMANAGEMENT_PERSON_DOUBLE</option>
</field>


<field
name="person_id1"
type="dependsql"
depends="person_art"
task="personlistoptions"
class="inputbox"
showon="person_art:2"
default="0"
size="1"
label="COM_SPORTSMANAGEMENT_ADMIN_PERSON_1"
description="COM_SPORTSMANAGEMENT_ADMIN_PERSON_1_DESC"
>
<option value="0">COM_SPORTSMANAGEMENT_GLOBAL_SELECT_PERSON</option>
</field>

<field
name="person_id2"
type="dependsql"
depends="person_art"
task="personlistoptions"
class="inputbox"
showon="person_art:2"
default="0"
size="1"
label="COM_SPORTSMANAGEMENT_ADMIN_PERSON_2"
description="COM_SPORTSMANAGEMENT_ADMIN_PERSON_2_DESC"
>
<option value="0">COM_SPORTSMANAGEMENT_GLOBAL_SELECT_PERSON</option>
</field>



</fieldset>

Expand Down
4 changes: 4 additions & 0 deletions admin/sql/install.mysql.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,10 @@ CREATE TABLE IF NOT EXISTS `#__sportsmanagement_season_team_person_id` (
`contract_from` DATE NOT NULL DEFAULT '0000-00-00' ,
`contract_to` DATE NOT NULL DEFAULT '0000-00-00' ,

`person_id1` INT( 11 ) NOT NULL DEFAULT '0',
`person_id2` INT( 11 ) NOT NULL DEFAULT '0',
`person_art` TINYINT( 4 ) NOT NULL DEFAULT '1',

PRIMARY KEY (`id`) ,
UNIQUE KEY `combi` (`person_id`,`season_id`,`team_id`,`persontype`) ,
KEY `team_id` (`team_id`),
Expand Down
2 changes: 1 addition & 1 deletion admin/sql/updates/mysql/3.10.00.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ DEFAULT CHARSET = utf8;



-- INSERT INTO `#__sportsmanagement_version_history` (`id`, `date`, `text`, `version`) VALUES (NULL, '2022-01-09', 'COM_SPORTSMANAGEMENT_DB_UPDATE_2022-01-09', '3.10.00');

6 changes: 6 additions & 0 deletions admin/sql/updates/mysql/4.14.00.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE `#__sportsmanagement_season_team_person_id` ADD `person_id1` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `#__sportsmanagement_season_team_person_id` ADD `person_id2` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `#__sportsmanagement_season_team_person_id` ADD `person_art` TINYINT( 4 ) NOT NULL DEFAULT '1';



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.13.00" detailsurl="https://raw.githubusercontent.com/diddipoeler/sportsmanagement/master/sportsmanagement-update.xml"/>
<extension name="sportsmanagement" element="com_sportsmanagement" type="component" version="4.14.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.13.00';
private $old_release = '4.12.00';
private $release = '4.14.00';
private $old_release = '4.13.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 @@ -2305,7 +2305,24 @@
</update>



<update>
<name>Sports-Management</name>
<description>Sports-Management Component</description>
<element>com_sportsmanagement</element>
<type>component</type>
<version>4.14.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.13.00</version>
<version>4.14.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.13.00</version>
<version>4.14.00</version>
<infourl title="Sports-Management URL">http://fussballineuropa.de</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/diddipoeler/sportsmanagement/archive/4.13.00.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/diddipoeler/sportsmanagement/archive/4.14.00.zip</downloadurl>
</downloads>
<tags>
<tag>some-tag</tag>
Expand Down

0 comments on commit 05ef63e

Please sign in to comment.