Skip to content

Commit ecc36dc

Browse files
committed
Let a version be empty on publish
1 parent fc1997b commit ecc36dc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-odk` will be documented in this file
44

5+
## 1.2.3 - 2021-08-27
6+
7+
- Let a version be empty on publish
8+
59
## 1.2.2 - 2021-08-26
610

711
- Better loop through answers (convert to object and rename keys)

src/OdkCentral.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,10 @@ public function current()
460460
* @param string $version
461461
* @return $this
462462
*/
463-
public function publish(string $version = null)
463+
public function publish(string $version = '')
464464
{
465465

466-
$v = $version ?? uniqid();
467-
468-
$this->endpoint .= '/publish?version=' . $v;
466+
$this->endpoint .= '/publish?version=' . $version;
469467

470468
return $this->post();
471469

0 commit comments

Comments
 (0)